Changelog update #27
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@v3 | |
# Download artifacts for release | |
- uses: actions/[email protected] | |
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@v1 | |
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, '-')}} |