-
Notifications
You must be signed in to change notification settings - Fork 14
46 lines (43 loc) · 1.31 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
name: Upload Release Asset
permissions:
contents: write
on:
push:
tags:
- "v*"
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Set tag hash
id: tag
run: echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: gitmarker
run: "for i in *.kicad_pcb; do sed -i 's/{GITHASH}/${{ steps.tag.outputs.hash }}/g' $i; done" # add git marker
- uses: INTI-CMNB/KiBot@v2_k8
with:
# Required - kibot config file
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
- name: Prepare release
run: |
mkdir -p zipped/
zip -n zip -9 -o -D zipped/rusty-probe-pcb.zip output/*.csv output/*.html output/*.png output/*.pdf output/*.zip
- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
body: Publish new version of PCB
tag_name: ${{ github.ref_name }}
prerelease: false
make_latest: true
fail_on_unmatched_files: true
files: |
zipped/rusty-probe-pcb.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}