-
-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (56 loc) · 3.12 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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:
kicad_outputs:
uses: ./.github/workflows/kicad.yml
build_firmware:
uses: ./.github/workflows/build.yml
secrets: inherit
test:
uses: ./.github/workflows/test.yml
secrets: inherit
create_release:
needs: [kicad_outputs, build_firmware, test]
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
mv ./KiCad_Outputs.zip ./KiCad_Outputs
zip -r ./releases/KiCad_Outputs_${{ github.ref_name }}.zip ./KiCad_Outputs
cp OutputFiles_10M16_${{ github.ref_name }}.zip/RESDMAC.pof ./releases/RESDMAC_10M16_${{ github.ref_name }}.pof
cp OutputFiles_10M04_${{ github.ref_name }}.zip/RESDMAC.pof ./releases/RESDMAC_10M04_${{ github.ref_name }}.pof
cp OutputFiles_10M02_${{ github.ref_name }}.zip/RESDMAC.pof ./releases/RESDMAC_10M02_${{ github.ref_name }}.pof
cp OutputFiles_10M16_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ./releases/RESDMAC_10M16_${{ github.ref_name }}.rpd
cp OutputFiles_10M04_${{ github.ref_name }}.zip/resdmac_cfm0_auto.rpd ./releases/RESDMAC_10M04_${{ github.ref_name }}.rpd
cp OutputFiles_10M16_${{ github.ref_name }}.zip/RESDMAC.pof.sha256 ./releases/RESDMAC_10M16_${{ github.ref_name }}.pof.sha256
cp OutputFiles_10M04_${{ github.ref_name }}.zip/RESDMAC.pof.sha256 ./releases/RESDMAC_10M04_${{ github.ref_name }}.pof.sha256
cp OutputFiles_10M02_${{ github.ref_name }}.zip/RESDMAC.pof.sha256 ./releases/RESDMAC_10M02_${{ github.ref_name }}.pof.sha256
cp OutputFiles_10M16_${{ github.ref_name }}.zip/resdmac_cfm0_auto.crc32 ./releases/RESDMAC_10M16_${{ github.ref_name }}.rpd.crc32
cp OutputFiles_10M04_${{ github.ref_name }}.zip/resdmac_cfm0_auto.crc32 ./releases/RESDMAC_10M04_${{ github.ref_name }}.rpd.crc32
- 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: |
./releases/KiCad_Outputs_${{ github.ref_name }}.zip
./releases/RESDMAC_10M16_${{ github.ref_name }}.pof
./releases/RESDMAC_10M04_${{ github.ref_name }}.pof
./releases/RESDMAC_10M02_${{ github.ref_name }}.pof
./releases/RESDMAC_10M16_${{ github.ref_name }}.rpd
./releases/RESDMAC_10M04_${{ github.ref_name }}.rpd
./releases/RESDMAC_10M16_${{ github.ref_name }}.rpd.crc32
./releases/RESDMAC_10M04_${{ github.ref_name }}.rpd.crc32
./releases/RESDMAC_10M16_${{ github.ref_name }}.pof.sha256
./releases/RESDMAC_10M04_${{ github.ref_name }}.pof.sha256
./releases/RESDMAC_10M02_${{ github.ref_name }}.pof.sha256