-
Notifications
You must be signed in to change notification settings - Fork 61
46 lines (39 loc) · 1.14 KB
/
autorelease.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: 'Autorelease'
on:
workflow_dispatch:
workflow_call:
jobs:
tag-release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
outputs:
VERSION: ${{ steps.get_version.outputs.VERSION }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: master
- name: get version
id: get_version
run: echo ::set-output name=VERSION::v$(cat manifest.json | jq -r .version)
- name: Tag release
run: |
git config user.email "[email protected]"
git config user.name "shiori"
git tag -a ${{ steps.get_version.outputs.VERSION }} -m "tag release ${{ steps.get_version.outputs.VERSION }}"
git push --follow-tags
call-build:
needs: tag-release
uses: ./.github/workflows/_webext-build.yml
secrets:
signKey: ${{ secrets.AMO_SIGN_KEY }}
signSecret: ${{ secrets.AMO_SIGN_SECRET }}
call-release:
needs:
- tag-release
- call-build
uses: ./.github/workflows/_release.yml
with:
tag: ${{ needs.tag-release.outputs.VERSION }}