-
-
Notifications
You must be signed in to change notification settings - Fork 35
43 lines (35 loc) · 1.13 KB
/
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
name: Release Configurator
# Controls when the workflow will run
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
workflow_call:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
Build:
uses: ./.github/workflows/build.yml
Release:
needs: [Build] # Requires build first
name: Create release
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v4
# Download artifacts for release
- uses: actions/download-artifact@v4
with:
path: etc/usr/artifacts/
- name: Zip output
run: for i in */; do zip -r "${i%/}.zip" "$i"; done
working-directory: etc/usr/artifacts/
# Create release
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: "Configurator ${{github.ref_name}}"
body_path: ${{ github.workspace }}/CHANGELOG.md
body: "Release notes coming soon"
files: etc/usr/artifacts/*.zip
prerelease: ${{contains(github.ref_name, '-')}}