testing release fix #21
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: Create New Release | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
tags: | |
- 'v*' # Trigger only when tag matches v*, i.e. v1.0, v21.12.31, v211231 | |
defaults: | |
run: | |
working-directory: Quartus | |
jobs: | |
kicad_outputs: | |
uses: ./.github/workflows/kicad.yml | |
build_firmware: | |
uses: ./.github/workflows/build.yml | |
with: | |
version: 'v1.0' | |
use_version: 'true' | |
create_release: | |
needs: [kicad_outputs, build_firmware] | |
runs-on: ubuntu-latest | |
steps: | |
- name: download artifacts | |
uses: actions/download-artifact@v4 | |
- name: Copy, tag with version and create SHA256 checksum | |
run: | | |
mkdir -p ../releases | |
cp KiCad_Outputs.zip ../releases/KiCad_Outputs_${{ github.ref_name }} | |
cp output_files_10M16_${{ github.ref_name }}.zip/RESDMAC.pof ../releases/RESDMAC_10M16_${{ github.ref_name }}.pof | |
cp output_files_10M04_${{ github.ref_name }}.zip/RESDMAC.pof ../releases/RESDMAC_10M04_${{ github.ref_name }}.pof | |
cp output_files_10M02_${{ github.ref_name }}.zip/RESDMAC.pof ../releases/RESDMAC_10M02_${{ github.ref_name }}.pof | |
cp output_files_10M16_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ../releases/RESDMAC_10M16_${{ github.ref_name }}.rpd | |
cp output_files_10M04_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ../releases/RESDMAC_10M04_${{ github.ref_name }}.rpd | |
cp output_files_10M02_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ../releases/RESDMAC_10M02_${{ github.ref_name }}.rpd | |
sha256sum output_files_10M16_${{ github.ref_name }}.zip/RESDMAC.pof > ../releases/RESDMAC_10M16_${{ github.ref_name }}.pof.sha256 | |
sha256sum output_files_10M04_${{ github.ref_name }}.zip/RESDMAC.pof > ../releases/RESDMAC_10M04_${{ github.ref_name }}.pof.sha256 | |
sha256sum output_files_10M02_${{ github.ref_name }}.zip/RESDMAC.pof > ../releases/RESDMAC_10M02_${{ github.ref_name }}.pof.sha256 | |
- name: Changelog | |
uses: janheinrichmerker/action-github-changelog-generator@v2.3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
onlyLastTag: "true" | |
stripHeaders: "true" | |
stripGeneratorNotice: "true" | |
- name: Create a new GitHub release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: Release ${{ github.ref_name }} | |
tag_name: ${{ github.ref_name }} | |
draft: true | |
body: ${{ steps.Changelog.outputs.changelog }} | |
files: | | |
releases/RESDMAC_10M16_${{ github.ref_name }}.pof | |
releases/RESDMAC_10M16_${{ github.ref_name }}.rpd | |
releases/RESDMAC_10M16_${{ github.ref_name }}.pof.sha256 | |
releases/RESDMAC_10M04_${{ github.ref_name }}.pof | |
releases/RESDMAC_10M04_${{ github.ref_name }}.rpd | |
releases/RESDMAC_10M04_${{ github.ref_name }}.pof.sha256 | |
releases/RESDMAC_10M02_${{ github.ref_name }}.pof | |
releases/RESDMAC_10M02_${{ github.ref_name }}.rpd | |
releases/RESDMAC_10M02_${{ github.ref_name }}.pof.sha256 | |
releases/KiCad_Outputs_${{ github.ref_name }} |