Merge pull request #5 from EMATech/main #12
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: Release | |
on: push | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Get sources | |
uses: actions/checkout@v2 | |
- name: Install Deps | |
run: pip install lxml pyyaml | |
- name: Run | |
run: python -m touchmcu --all | |
- name: Save Artifact | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
uses: actions/upload-artifact@v2 | |
with: | |
name: layouts | |
path: output/* | |
if-no-files-found: error | |
retention-days: 1 | |
release: | |
name: Release | |
needs: build | |
runs-on: ubuntu-20.04 | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
steps: | |
- name: Sanity Clean | |
run: rm -rf artifacts | |
- name: Get Artifacts | |
uses: actions/download-artifact@v2 | |
with: | |
name: layouts | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: '*.tosc' |