This commit is contained in:
Mateusz Faderewski 2023-03-03 17:53:27 +01:00
parent c328cc2594
commit f204a62745

View File

@ -20,9 +20,9 @@ jobs:
- name: Download SummerCart64 repository - name: Download SummerCart64 repository
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: Set SC64 version - name: Set package version
uses: frabert/replace-string-action@v2 uses: frabert/replace-string-action@v2
id: sc64version id: version
with: with:
pattern: '\/' pattern: '\/'
string: '-${{ github.ref_name }}' string: '-${{ github.ref_name }}'
@ -31,23 +31,23 @@ jobs:
- name: Build firmware - name: Build firmware
run: ./docker_build.sh release --force-clean run: ./docker_build.sh release --force-clean
env: env:
SC64_VERSION: ${{ steps.sc64version.outputs.replaced }} SC64_VERSION: ${{ steps.version.outputs.replaced }}
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: sc64-pkg${{ steps.sc64version.outputs.replaced }} name: sc64-pkg${{ steps.version.outputs.replaced }}
path: | path: |
sc64-extra${{ steps.sc64version.outputs.replaced }}.zip sc64-extra${{ steps.version.outputs.replaced }}.zip
sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin sc64-firmware${{ steps.version.outputs.replaced }}.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${{ steps.sc64version.outputs.replaced }}.zip sc64-extra${{ steps.version.outputs.replaced }}.zip
sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin sc64-firmware${{ steps.version.outputs.replaced }}.bin
build-deployer: build-deployer:
strategy: strategy: