Skip to content

v0.0.40-emu

v0.0.40-emu #27

Workflow file for this run

name: Continous Release MacroQuest [EMU]
on:
release:
types: [published]
env:
config: Release
platform: Win32
branch: emu
publishDir: ./build/bin/Release/
jobs:
s1:
uses: ./.github/workflows/emu_shared.yaml
with:
client_target: emu
secrets: inherit
publish:
name: Publish Macroquest with plugins
runs-on: [windows-2022]
needs: s1
steps:
- name: Restore cache of build artifacts
uses: actions/cache/restore@v3
id: restore-cache-build
with:
path: ${{ github.workspace }}\build\bin\${{env.config}}
key: ${{ runner.os }}-artifacts-${{ env.platform }}
- name: Pre-Publish
shell: bash
run: |
# Pack files
7z a -tzip MacroQuest_${{ github.ref_name }}.zip $publishDir/*
- name: Publish
uses: softprops/action-gh-release@v1
with:
files: "MacroQuest_${{ github.ref_name }}.zip"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Cleanup artifacts cache
shell: bash
run: |
gh extension install actions/gh-actions-cache
REPO=${{ github.repository }}
BRANCH=${{ env.branch }}
cacheKey=${{ runner.os }}-artifacts-${{ env.platform }}
## Setting this to not fail the workflow while deleting cache keys.
set +e
echo "Deleting source cache..."
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm
echo "Done"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}