-
Notifications
You must be signed in to change notification settings - Fork 10
48 lines (48 loc) · 1.81 KB
/
continuous-releasing.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
name: Continuous Releasing
on:
workflow_run:
workflows: Continuous Packing
types: completed
env:
PROJECT_NAME_PREFIX: quake-leveldesign-starterkit
jobs:
release-starter-kit:
name: Release the starter kit
runs-on: ubuntu-22.04
steps:
- name: Checkout the repository
uses: actions/checkout@v4
- name: Get the latest commit details
run: echo "LAST_COMMIT_SHA_HASH=$(git rev-parse --short=7 HEAD)" >> $GITHUB_ENV
shell: bash
- name: Set current release date
run: echo "CURRENT_DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
shell: bash
- name: Download packed binaries
uses: dawidd6/action-download-artifact@v3
with:
name_is_regexp: true
name: ^${{ env.PROJECT_NAME_PREFIX }}.*$
workflow: continuous-packing.yml
skip_unpack: true
- name: Download packed release notes
uses: dawidd6/action-download-artifact@v3
with:
name_is_regexp: true
name: ^${{ env.PROJECT_NAME_PREFIX }}-release-notes.*$
workflow: continuous-packing.yml
skip_unpack: true
- name: Unpack the release notes
run: |
file=$(find . -type f -name "${{ env.PROJECT_NAME_PREFIX }}-release-notes-*.zip" | head -n 1)
7z x "$file" -o"${{ env.PROJECT_NAME_PREFIX }}/"
shell: bash
- name: Release the starter kit
uses: ncipollo/release-action@v1
with:
allowUpdates: true
makeLatest: true
artifacts: ${{ env.PROJECT_NAME_PREFIX }}-*-windows.zip,${{ env.PROJECT_NAME_PREFIX }}-*-linux.zip
name: QLDSK v${{ env.CURRENT_DATE }} (${{ env.LAST_COMMIT_SHA_HASH }})
tag: v${{ env.CURRENT_DATE }}-${{ env.LAST_COMMIT_SHA_HASH }}
bodyFile: ${{ env.PROJECT_NAME_PREFIX }}/RELEASE_NOTES.md