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
# path: SC64.zip
# - name: Get release
# - name: Upload release assets
# if: github.event_name == 'release' && github.event.action == 'created'
# id: get_release
# 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 }}
# uses: softprops/action-gh-release@v0.1.15
# with:
# upload_url: ${{ steps.get_release.outputs.upload_url }}
# asset_path: SC64.zip
# asset_name: SC64.zip
# asset_content_type: application/zip
# files: SC64.zip
build-executables:
strategy:
@ -53,13 +41,13 @@ jobs:
os: [windows-latest, ubuntu-latest, macos-latest]
include:
- os: windows-latest
artifact: Apps-Windows
name: Apps-Windows
zip: tar.exe -a -c -f
- os: ubuntu-latest
artifact: Apps-Linux
name: Apps-Linux
zip: zip -r
- os: macos-latest
artifact: Apps-macOS
name: Apps-macOS
zip: zip -r
runs-on: ${{ matrix.os }}
@ -88,21 +76,16 @@ jobs:
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.artifact }}
name: ${{ matrix.name }}
path: sw/pc/dist/*
- name: Zip executables
run: ${{ matrix.zip }} ${{ matrix.artifact }}.zip *
- name: Zip release executables
if: github.event_name == 'release' && github.event.action == 'created'
run: ${{ matrix.zip }} ${{ matrix.name }}.zip *
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
uses: softprops/action-gh-release@v0.1.15
if: github.event_name == 'release' && github.event.action == 'created'
uses: softprops/action-gh-release@v0.1.15
with:
files: sw/pc/dist/${{ matrix.artifact }}.zip
files: sw/pc/dist/${{ matrix.name }}.zip