Skip to content

testing workflow changes #55

testing workflow changes

testing workflow changes #55

Workflow file for this run

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
jobs:
build_firmware_10M16:
secrets: inherit
uses: ./.github/workflows/build.yml
with:
device: '10M16SCU169C8G'
ADF:
needs: [build_firmware_10M16]
uses: ./.github/workflows/make_adf.yml
secrets: inherit
create_release:
needs: [build_firmware_10M16, ADF]
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 OutputFiles_10M16SCU169C8G_${{ github.ref_name }}.zip/RESDMAC.pof ./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}.pof
cp OutputFiles_10M16SCU169C8G_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}.rpd
cp OutputFiles_10M16SCU169C8G_${{ github.ref_name }}.zip/RESDMAC_pof_sha256.txt ./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}_pof_sha256.txt
cp OutputFiles_10M16SCU169C8G_${{ github.ref_name }}.zip/resdmac_cfm0_auto_crc32.txt ./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}_rpd_crc32.txt
- 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
generate_release_notes: true
files: |
./ReSDMAC_Utils_${{ github.ref_name }}.adf/ReSDMAC_Utils_${{ github.ref_name }}.adf
./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}.pof
./releases/RESDMAC_10M16SCU169C8G_${{ github.ref_name }}_pof_sha256.txt