-
Notifications
You must be signed in to change notification settings - Fork 10
36 lines (30 loc) · 863 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
jobs:
package:
runs-on: ubuntu-latest
environment: Webstores
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm clean-install-test
env:
LAST_FM_SECRET: ${{ secrets.LAST_FM_SECRET }}
LAST_FM_KEY: ${{ secrets.LAST_FM_KEY }}
- name: Package the extension
run: |
mkdir -p dist
npm run package
env:
LAST_FM_SECRET: ${{ secrets.LAST_FM_SECRET }}
LAST_FM_KEY: ${{ secrets.LAST_FM_KEY }}
- name: Create release (if tagged)
if: ${{ github.ref_type == 'tag' }}
run: |
hub release create -a "dist/webextension-fip-${VERSION}.zip" -m "${VERSION}" ${VERSION}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref_name }}