From fb9c1614d3731aa2f85bd0d24272345bd257bf17 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Tue, 17 Jun 2025 09:30:55 -0500 Subject: [PATCH] release action --- .github/workflows/release_gh.yml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release_gh.yml diff --git a/.github/workflows/release_gh.yml b/.github/workflows/release_gh.yml new file mode 100644 index 0000000..7505b18 --- /dev/null +++ b/.github/workflows/release_gh.yml @@ -0,0 +1,41 @@ +# SPDX-FileCopyrightText: 2025 Tim Cocks, written for Adafruit Industries +# +# SPDX-License-Identifier: MIT + +name: GitHub Release Actions + +on: + release: + types: [published] + +jobs: + upload-release-assets: + runs-on: ubuntu-latest + steps: + - name: Set up requested Python version + uses: actions/setup-python@v5 + with: + python-version: 3.12 + - name: Versions + shell: bash + run: | + python3 --version + - name: Checkout Current Repo + uses: actions/checkout@v4 + with: + submodules: true + show-progress: false + - name: Install reqs + shell: bash + run: | + pip install -r requirements.txt + - name: Build assets + shell: bash + 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 }} \ No newline at end of file