Skip to content

Commit

Permalink
chore: automatically create unpacked.zip on tag (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
MiWeiss authored Aug 7, 2021
1 parent bb1ea98 commit 4d8e477
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: 15.x
- run: npm ci
- run: npm run build
- name: installing zip
run: sudo apt install --yes zip unzip
- name: zipping artifacts
run: |
cd dist
zip -r unpacked.zip ./*
ls -l
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./dist/unpacked.zip
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,6 @@ The following are the most relevant folders in this repository. Folders not list
There's not many unit tests yet (that's still a big todo 😄), but the few which are there are run on PRs and pushed to `main`.\
To run them manually, `npm run test` does the trick.

- **Release**
Upon tagging a commit, a zip of the dist folder, `unpacked.zip` is added to the corresponding github release.

2 changes: 1 addition & 1 deletion docs/pages/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ I might work around these problems eventually, but probably not tomorrow :-)

### Installing it yourself
Using the extensions-developer mode in chrome, edge or with some additional work firefox, you can add the unpacked licenseplate extension manually (just click on `load unpacked`).
You'll find an unpacked version of licenseplate shipped with the [latest release](https://github.com/MiWeiss/licenseplate/releases), e.g. `v0.2.0-unpacked`, or you can easily build the most recent version by cloning [the sources](https://github.com/MiWeiss/licenseplate) and running `npm run build` (unpacked extension lands in the `dist` folder).
You'll find an unpacked version (`unpacked.zip`) shipped with the [latest release](https://github.com/MiWeiss/licenseplate/releases) or you can easily build the most recent version by cloning [the sources](https://github.com/MiWeiss/licenseplate) and running `npm run build` (unpacked extension lands in the `dist` folder).

0 comments on commit 4d8e477

Please sign in to comment.