diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d7e717..69432f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,11 +20,17 @@ jobs: - name: Download SummerCart64 repository uses: actions/checkout@v3 - - name: Set SC64 version - run: | - echo "$GITHUB_REF_NAME" - SC64_VERSION=-${GITHUB_REF_NAME//\//-} - echo "$SC64_VERSION" + - uses: bluwy/substitute-string-action@v2.0.1 + id: sc64version + with: + _input-text: ${{ github.ref_name }} + \: - + + # - name: Set SC64 version + # run: | + # echo "$GITHUB_REF_NAME" + # SC64_VERSION=-${GITHUB_REF_NAME//\//-} + # echo "$SC64_VERSION" - name: Build everything run: ./docker_build.sh release --force-clean @@ -32,18 +38,18 @@ jobs: - name: Upload artifact uses: actions/upload-artifact@v3 with: - name: sc64-pkg${{ env.SC64_VERSION }} + name: sc64-pkg${{ steps.sc64version.outputs.result }} path: | - sc64-extra${{ env.SC64_VERSION }}.zip - sc64-firmware${{ env.SC64_VERSION }}.bin + sc64-extra${{ steps.sc64version.outputs.result }}.zip + sc64-firmware${{ steps.sc64version.outputs.result }}.bin - name: Upload release assets if: github.event_name == 'release' && github.event.action == 'created' uses: softprops/action-gh-release@v0.1.15 with: files: | - sc64-extra${{ env.SC64_VERSION }}.zip - sc64-firmware${{ env.SC64_VERSION }}.bin + sc64-extra${{ steps.sc64version.outputs.result }}.zip + sc64-firmware${{ steps.sc64version.outputs.result }}.bin build-sc64-py: strategy: