Merge pull request #16 from acedogblast/acedogblast-README-fix #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |