Skip to content

Build Asset for Release #1

Build Asset for Release

Build Asset for Release #1

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 kicadtestpoints*.zip)" >> $GITHUB_ENV
echo "PCM_NAME=$(ls kicadtestpoints*.zip | rev | cut -c 5- | rev)" >> $GITHUB_ENV
- name: Publish release
uses: softprops/action-gh-release@v1
with:
files: |
./pcm/build/${{ env.ZIP_NAME }}