Skip to content

PSoC-for-Arduino Release Automation #8

PSoC-for-Arduino Release Automation

PSoC-for-Arduino Release Automation #8

Workflow file for this run

name: PSoC-for-Arduino Release Automation
on:
release:
types: published
push:
tags:
- 'v*.*.*'
- 'V*.*.*'
jobs:
release:
runs-on:
- self-hosted
- X64
- Linux
- PSoC
if: startsWith(github.ref, 'refs/tags/V')
steps:
- name: Checkout actions
uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- run: pip install requests
- name: Build release changelog
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v3
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build release assets
run: |
pwd
python ./tools/release.py build-release ${{ github.repository }} ${{ github.ref_name }}
- name: Upload assets
uses: softprops/action-gh-release@v1
with:
name: PSoC-for-Arduino ${{ github.ref_name }}
files: |
pkg_build/*.zip
pkg_build/package_psoc_index.json
body: ${{steps.build_changelog.outputs.changelog}}