This commit is contained in:
Mateusz Faderewski 2023-02-24 21:13:37 +01:00
parent d7f85c3b9b
commit ef9e9fa397

View File

@ -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: