-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.13 KB
/
release-please.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
name: Release please
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
upload_url: ${{ steps.release.outputs.upload_url }}
steps:
- name: Generate release notes
id: release
uses: google-github-actions/release-please-action@v4
with:
token: ${{ secrets.PAT }}
release-type: node
pack:
needs: release
if: needs.release.outputs.release_created == 'true'
uses: ./.github/workflows/pack.yml
publish-release-assets:
runs-on: ubuntu-latest
needs: [release, pack]
steps:
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: synco
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
with:
upload_url: ${{ needs.release.outputs.upload_url }}
asset_path: ./synco.crx
asset_name: synco.crx
asset_content_type: application/x-chrome-extension