-
-
Notifications
You must be signed in to change notification settings - Fork 103
56 lines (46 loc) · 1.29 KB
/
release-assets.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
48
49
50
51
52
53
54
55
56
name: Release assets when push tags
on:
push:
tags:
- v[0-9]+.* # roughly matching version numbers
- release-*
jobs:
build:
uses: ./.github/workflows/build.yml
version:
uses: ./.github/workflows/version.yml
release:
needs:
- build
- version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download a built dist artifact
uses: actions/download-artifact@v3
with:
name: dist
path: dist
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ needs.version.outputs.VERSION }}
release_name: ${{ needs.version.outputs.VERSION }}
draft: false
prerelease: false
- name: Generate release zip
run: |
make compress
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/Gitako.zip
asset_name: Gitako.zip
asset_content_type: application/zip