This commit is contained in:
Mateusz Faderewski 2023-02-18 19:40:14 +01:00
parent 8d0d89b4b0
commit b31f1b4330

View File

@ -29,23 +29,11 @@ jobs:
# name: SC64 # name: SC64
# path: SC64.zip # path: SC64.zip
# - name: Get release # - name: Upload release assets
# if: github.event_name == 'release' && github.event.action == 'created' # if: github.event_name == 'release' && github.event.action == 'created'
# id: get_release # uses: softprops/action-gh-release@v0.1.15
# uses: bruceadams/get-release@v1.3.2
# env:
# GITHUB_TOKEN: ${{ github.token }}
# - name: Upload release asset
# if: github.event_name == 'release' && github.event.action == 'created'
# uses: actions/upload-release-asset@v1 # This will start failing soon due to needing node 12!
# env:
# GITHUB_TOKEN: ${{ github.token }}
# with: # with:
# upload_url: ${{ steps.get_release.outputs.upload_url }} # files: SC64.zip
# asset_path: SC64.zip
# asset_name: SC64.zip
# asset_content_type: application/zip
build-executables: build-executables:
strategy: strategy:
@ -53,13 +41,13 @@ jobs:
os: [windows-latest, ubuntu-latest, macos-latest] os: [windows-latest, ubuntu-latest, macos-latest]
include: include:
- os: windows-latest - os: windows-latest
artifact: Apps-Windows name: Apps-Windows
zip: tar.exe -a -c -f zip: tar.exe -a -c -f
- os: ubuntu-latest - os: ubuntu-latest
artifact: Apps-Linux name: Apps-Linux
zip: zip -r zip: zip -r
- os: macos-latest - os: macos-latest
artifact: Apps-macOS name: Apps-macOS
zip: zip -r zip: zip -r
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -88,21 +76,16 @@ jobs:
- name: Upload artifact - name: Upload artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.artifact }} name: ${{ matrix.name }}
path: sw/pc/dist/* path: sw/pc/dist/*
- name: Zip executables - name: Zip release executables
run: ${{ matrix.zip }} ${{ matrix.artifact }}.zip * if: github.event_name == 'release' && github.event.action == 'created'
run: ${{ matrix.zip }} ${{ matrix.name }}.zip *
working-directory: sw/pc/dist working-directory: sw/pc/dist
- name: TEST
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifact }}-test
path: sw/pc/dist/${{ matrix.artifact }}.zip
- name: Upload release assets - name: Upload release assets
uses: softprops/action-gh-release@v0.1.15
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
with: with:
files: sw/pc/dist/${{ matrix.artifact }}.zip files: sw/pc/dist/${{ matrix.name }}.zip