mirror of
https://github.com/dborth/fceugx.git
synced 2024-12-04 22:34:14 +01:00
Add Pre-release (#481)
This commit is contained in:
parent
145490bff9
commit
fffda2f14c
@ -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"
|
Loading…
Reference in New Issue
Block a user