Add Pre-release (#1041)

This commit is contained in:
bladeoner 2022-12-02 17:46:53 +01:00 committed by GitHub
parent 3940616617
commit 6d7110a761
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 Snes9x GX
name: Build
runs-on: ubuntu-latest
strategy:
matrix:
@ -61,3 +61,41 @@ jobs:
name: Snes9xGX-GameCube
path: |
dist/Snes9xGX-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 Snes9xGX/snes9xgx/cheats/*
rm -r Snes9xGX/snes9xgx/roms/*
rm -r Snes9xGX/snes9xgx/saves/*
zip -r Snes9xGX.zip Snes9xGX
zip -r Snes9xGX-GameCube.zip Snes9xGX-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"