-
-
Notifications
You must be signed in to change notification settings - Fork 1
69 lines (62 loc) · 3.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
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 }}