-
Notifications
You must be signed in to change notification settings - Fork 14
38 lines (31 loc) · 964 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
37
38
name: Make release
on:
workflow_run:
workflows: [ "Make new tag" ]
types:
- completed
jobs:
makeRelease:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get actual version
id: version_check
run: |
version=`./current-version.sh`
echo "::set-output name=version::v$version"
- name: Get tags
run: git fetch --tags -f
- name: Checkout tag
run: git checkout tags/${{ steps.version_check.outputs.version }}
- name: 'Download workflow artifact: webpack_bundles.tar.gz'
uses: dawidd6/action-download-artifact@v2
with:
name: webpack_bundles.tar.gz
run_id: ${{ github.event.workflow_run.id }}
- name: Release
uses: ncipollo/release-action@v1
with:
artifacts: "*.tar.gz"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.version_check.outputs.version }}