-
Notifications
You must be signed in to change notification settings - Fork 10
44 lines (35 loc) · 1001 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
39
40
41
42
43
44
name: Publish new release on GitHub
on:
# Run automatically when a new tag is created
push:
tags:
- 'v0.*' # alpha
- 'v1.*' # release
jobs:
build:
uses: ./.github/workflows/webpack.yml
release:
runs-on: ubuntu-22.04
needs: build
steps:
- uses: actions/checkout@v4
- name: Download Artifact
uses: actions/[email protected]
with:
pattern: relzip-*
path: ./artifacts
- name: Display structure of downloaded files
run: ls -lahR
working-directory: ./artifacts
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/v')
with:
files: ./artifacts/*/codam-web-greeter-*.zip
fail_on_unmatched_files: true
tag_name: ${{ github.ref }}
name: codam-web-greeter ${{ github.ref_name }}
generate_release_notes: true
draft: true
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}