Skip to content

Update README files #105

Update README files

Update README files #105

Workflow file for this run

name: CI
on:
push:
paths-ignore:
- .gitignore
- README.md
pull_request:
paths-ignore:
- .gitignore
- README.md
workflow_dispatch:
schedule:
- cron: '0 0 1 * *' # Monthly
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: microsoft/[email protected]
- name: Build Chaos Mod
run: msbuild /m /t:Build /p:Configuration=Release GSChaos.sln
- name: Prepare artifacts
run: |
mv Release/GSChaos.dll .\gamedir\asi_plugins\GSChaos.asi
mv Release/GSChaos.pdb .\gamedir\asi_plugins\
Compress-Archive -Path .\gamedir\* -Destination GSChaos.zip
- name: Deploy
uses: actions/upload-artifact@v3
with:
name: GSChaos_DEV
path: ./gamedir/
- name: Check for pull request
uses: 8BitJonny/[email protected]
id: pr-check
with:
# Verbose setting SHA when using Pull_Request event trigger to fix #16. (For push even trigger this is not necessary.)
sha: ${{ github.event.pull_request.head.sha }}
- name: Fetch artifacts
if: ${{ always() && github.ref == 'refs/heads/master' && steps.pr-check.outputs.pr_found == 'false' }}
uses: actions/[email protected]
with:
path: ./
- name: Remove old release
if: ${{ always() && github.ref == 'refs/heads/master' && steps.pr-check.outputs.pr_found == 'false' }}
uses: dev-drprasad/[email protected]
with:
delete_release: true
tag_name: continuous
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Allow GitHub to process removed release for few seconds
if: ${{ always() && github.ref == 'refs/heads/master' && steps.pr-check.outputs.pr_found == 'false' }}
continue-on-error: true
run: |
sleep 20s
dir
- name: Upload new release
if: ${{ always() && github.ref == 'refs/heads/master' && steps.pr-check.outputs.pr_found == 'false' }}
uses: softprops/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
files: GSChaos.zip
tag_name: continuous
draft: false
prerelease: true
name: GSChaos Continuous Build