Skip to content

func errors

func errors #60

Workflow file for this run

name: Compile scripts
on: [push]
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
compile_scripts:
name: Compile scripts
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Create deploy dir
run: mkdir deploy
- name: Compile
shell: pwsh
run: "shell_scripts/compile.ps1"
- name: Save PC artefact
if: github.repository_owner == 'ate47' && github.ref == 'refs/heads/master'
run: cp compiled.gscc deploy/atianmenu_pc.gscc
- name: Compile PS4
if: github.repository_owner == 'ate47' && github.ref == 'refs/heads/master'
shell: pwsh
run: |
$bytes = [Convert]::FromBase64String("${{ secrets.PS4_VMCODES_B64 }}")
$output = (gci ".\build\compiler\t7compiler\vm_codes.db2").FullName
[io.file]::WriteAllBytes($output, $bytes)
shell_scripts/compile.ps1 -PS4
"" > build\compiler\t7compiler\vm_codes.db2
- name: Save PS4 artefact
if: github.repository_owner == 'ate47' && github.ref == 'refs/heads/master'
run: cp compiled.gscc deploy/atianmenu_ps4.gscc
- name: Upload release
uses: ncipollo/release-action@v1
if: github.repository_owner == 'ate47' && github.ref == 'refs/heads/master'
with:
commit: ${{ github.sha }}
token: ${{ secrets.GITHUB_TOKEN }}
tag: "latest_build"
artifacts: "deploy/*.gscc"
artifactErrorsFailBuild: true
makeLatest: false
removeArtifacts: true
replacesArtifacts: true
allowUpdates: true
name: "Atian menu"
bodyFile: "shell_scripts/release.md"