forked from dvanoni/notero
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (45 loc) · 1.33 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
name: Release
on:
push:
branches: [main]
jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
tag_name: ${{ steps.release-please.outputs.tag_name }}
steps:
- id: release-please
uses: google-github-actions/release-please-action@v4
publish-artifacts:
needs: release-please
if: needs.release-please.outputs.release_created
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
cache: 'npm'
- run: npm ci
- run: npm run verify
- run: npm run build
- run: npm run create-xpi
- id: publish-xpi
name: Publish xpi
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.release-please.outputs.tag_name }}
files: xpi/*.xpi
- name: Generate update manifest
run: npm run generate-update-manifest -- ${{ fromJSON(steps.publish-xpi.outputs.assets)[0].browser_download_url }}
- name: Publish update manifest
uses: softprops/action-gh-release@v1
with:
tag_name: release
files: gen/update*