final build.yml

This commit is contained in:
Mateusz Faderewski 2023-03-03 17:45:38 +01:00
parent e605040d0f
commit a5f7b9fa6c

View File

@ -13,41 +13,41 @@ on:
workflow_dispatch:
jobs:
# build-fw-hw-sw:
# runs-on: ubuntu-latest
build-fw-hw-sw:
runs-on: ubuntu-latest
# steps:
# - name: Download SummerCart64 repository
# uses: actions/checkout@v3
steps:
- name: Download SummerCart64 repository
uses: actions/checkout@v3
# - name: Set SC64 version
# uses: frabert/replace-string-action@v2
# id: sc64version
# with:
# pattern: '\/'
# string: '-${{ github.ref_name }}'
# replace-with: '-'
- name: Set SC64 version
uses: frabert/replace-string-action@v2
id: sc64version
with:
pattern: '\/'
string: '-${{ github.ref_name }}'
replace-with: '-'
# - name: Build everything
# run: ./docker_build.sh release --force-clean
# env:
# SC64_VERSION: ${{ steps.sc64version.outputs.replaced }}
- name: Build firmware
run: ./docker_build.sh release --force-clean
env:
SC64_VERSION: ${{ steps.sc64version.outputs.replaced }}
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: sc64-pkg${{ steps.sc64version.outputs.replaced }}
# path: |
# sc64-extra${{ steps.sc64version.outputs.replaced }}.zip
# sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: sc64-pkg${{ steps.sc64version.outputs.replaced }}
path: |
sc64-extra${{ steps.sc64version.outputs.replaced }}.zip
sc64-firmware${{ steps.sc64version.outputs.replaced }}.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${{ steps.sc64version.outputs.replaced }}.zip
# sc64-firmware${{ steps.sc64version.outputs.replaced }}.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${{ steps.sc64version.outputs.replaced }}.zip
sc64-firmware${{ steps.sc64version.outputs.replaced }}.bin
build-deployer:
strategy: