-
Notifications
You must be signed in to change notification settings - Fork 14
39 lines (36 loc) · 1.08 KB
/
prerelease.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
name: Upload Pre-Release Asset
permissions:
contents: write
on:
push:
branches:
- master
jobs:
build:
name: Upload Pre-Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- 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_k7
with:
# Required - kibot config file
config: config.kibot.yaml
# optional - prefix to output defined in config
dir: output
- name: Release with Notes
uses: softprops/action-gh-release@v2
with:
body: Publish new snapshot of PCB @ ${{ github.sha }}
tag_name: preview-${{ steps.tag.outputs.hash }}
prerelease: true
fail_on_unmatched_files: true
files: |
output/**
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}