Add Pre-release (#481)

This commit is contained in:
bladeoner 2022-12-02 17:47:11 +01:00 committed by GitHub
parent 145490bff9
commit fffda2f14c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ on: [push, pull_request]
jobs:
build:
name: Build FCE Ultra GX
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
@ -61,3 +61,41 @@ jobs:
name: FCEUltraGX-GameCube
path: |
dist/FCEUltraGX-GameCube/
release:
name: Release
runs-on: ubuntu-latest
needs: [build]
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
name: Download Artifacts
- uses: actions/download-artifact@v3
with:
path: dist
- name: Re-zip artifacts
run: |
cd dist
rm -r FCEUltraGX/fceugx/cheats/*
rm -r FCEUltraGX/fceugx/roms/*
rm -r FCEUltraGX/fceugx/saves/*
zip -r FCEUltraGX.zip FCEUltraGX
zip -r FCEUltraGX-GameCube.zip FCEUltraGX-GameCube
- name: Update Git Tag
run: |
git tag -f Pre-release
git push -f origin Pre-release
- name: Create Release
uses: ncipollo/release-action@v1
with:
prerelease: true
allowUpdates: true
removeArtifacts: true
replacesArtifacts: false
tag: Pre-release
artifacts: "dist/*.zip"