Updated for mpy 10.x Builds #10
Workflow file for this run
This file contains hidden or 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
# SPDX-FileCopyrightText: 2017 Scott Shawcroft, written for Adafruit Industries | |
# | |
# SPDX-License-Identifier: MIT | |
name: Release Actions | |
on: | |
workflow_dispatch: | |
release: | |
types: [published] | |
jobs: | |
upload-release-assets: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Translate Repo Name For Build Tools filename_prefix | |
id: repo-name | |
run: | | |
echo "repo-name=$( | |
echo ${{ github.repository }} | | |
awk -F '\/' '{ print tolower($2) }' | | |
tr '_' '-' | |
)" >> $GITHUB_OUTPUT | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Versions | |
run: | | |
python3 --version | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install deps | |
run: | | |
sudo apt update | |
sudo apt-get install gettext otf2bdf xfonts-utils | |
pip install -r requirements.txt | |
- name: Build assets | |
run: python build.py | |
- name: Upload Release Assets | |
uses: shogo82148/actions-upload-release-asset@v1 | |
with: | |
asset_path: "dist/*" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
upload_url: ${{ github.event.release.upload_url }} |