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 - name: Download SummerCart64 repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set SC64 version - uses: bluwy/substitute-string-action@v2.0.1
run: | id: sc64version
echo "$GITHUB_REF_NAME" with:
SC64_VERSION=-${GITHUB_REF_NAME//\//-} _input-text: ${{ github.ref_name }}
echo "$SC64_VERSION" \: -
# - name: Set SC64 version
# run: |
# echo "$GITHUB_REF_NAME"
# SC64_VERSION=-${GITHUB_REF_NAME//\//-}
# echo "$SC64_VERSION"
- name: Build everything - name: Build everything
run: ./docker_build.sh release --force-clean run: ./docker_build.sh release --force-clean
@ -32,18 +38,18 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: sc64-pkg${{ env.SC64_VERSION }} name: sc64-pkg${{ steps.sc64version.outputs.result }}
path: | path: |
sc64-extra${{ env.SC64_VERSION }}.zip sc64-extra${{ steps.sc64version.outputs.result }}.zip
sc64-firmware${{ env.SC64_VERSION }}.bin sc64-firmware${{ steps.sc64version.outputs.result }}.bin
- name: Upload release assets - name: Upload release assets
if: github.event_name == 'release' && github.event.action == 'created' if: github.event_name == 'release' && github.event.action == 'created'
uses: softprops/action-gh-release@v0.1.15 uses: softprops/action-gh-release@v0.1.15
with: with:
files: | files: |
sc64-extra${{ env.SC64_VERSION }}.zip sc64-extra${{ steps.sc64version.outputs.result }}.zip
sc64-firmware${{ env.SC64_VERSION }}.bin sc64-firmware${{ steps.sc64version.outputs.result }}.bin
build-sc64-py: build-sc64-py:
strategy: strategy: