Skip to content

Version 1.1.1

Version 1.1.1 #4

name: Build Asset for Release
on:
release:
types: [published]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Update zip
run: |
cd pcm
python build.py
cd build
echo "ZIP_NAME=$(ls SparkFunKiCadPanelizer*.zip)" >> $GITHUB_ENV
echo "PCM_NAME=$(ls SparkFunKiCadPanelizer*.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
- name: Publish release
uses: softprops/action-gh-release@v1
with:
files: |
./pcm/build/${{ env.ZIP_NAME }}