mirror of
https://github.com/LIV2/GottaGoFaZt3r.git
synced 2025-12-06 00:32:44 +00:00
Add GitHub release automation
This commit is contained in:
parent
e73d2a81aa
commit
516a8d0a70
58
.github/workflows/release.yml
vendored
Normal file
58
.github/workflows/release.yml
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
name: Generate release files
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "Release_**"
|
||||
- "Rev**"
|
||||
- "Proto**"
|
||||
- "proto**"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
kicad_outputs:
|
||||
runs-on: ubuntu-latest
|
||||
container: setsoft/kicad_auto:ki6.0.7_Debian
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Generate outputs
|
||||
run: kibot -c kibot/release.kibot.yaml
|
||||
working-directory: Kicad
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: Gerbers
|
||||
path: Gerbers/*
|
||||
- uses: actions/upload-artifact@master
|
||||
with:
|
||||
name: kicad
|
||||
path: |
|
||||
Docs/*.pdf
|
||||
Docs/*.html
|
||||
Docs/*.png
|
||||
Gerbers/*.csv
|
||||
|
||||
draft_release:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- kicad_outputs
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
- uses: actions/download-artifact@v3
|
||||
with:
|
||||
path: artifacts
|
||||
- name: Zip Gerbers
|
||||
run: zip -r Gerbers.zip Gerbers
|
||||
working-directory: artifacts
|
||||
- name: release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
draft: true
|
||||
files: |
|
||||
Binary/*.jed
|
||||
artifacts/Gerbers.zip
|
||||
artifacts/kicad/**/*
|
||||
Loading…
x
Reference in New Issue
Block a user