update reload.sh #155
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
permissions: | |
contents: write | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- 'main' | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build_plugin: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:latest | |
steps: | |
- name: set git global safe directory | |
run: | | |
pacman -Syu git npm --noconfirm | |
git config --global --add safe.directory $(realpath .) | |
- uses: actions/checkout@v3 | |
- name: build plugin | |
run: | | |
npm i -g [email protected] | |
pnpm install --no-frozen-lockfile | |
pnpm update decky-frontend-lib --latest | |
pnpm run build | |
tar -czvf LegionGoRemapper.tar.gz --transform 's,^,LegionGoRemapper/,' dist backend bin py_modules assets ota_update.sh *.py *.json *.md *.js *.png LICENSE | |
continue-on-error: true | |
- name: show files | |
run: | | |
tar -tzvf LegionGoRemapper.tar.gz | |
- name: Publish Artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: LegionGoRemapper | |
path: LegionGoRemapper.tar.gz | |
publish: | |
if: startsWith(github.ref, 'refs/tags/v') | |
runs-on: ubuntu-latest | |
needs: build_plugin | |
steps: | |
- run: mkdir /tmp/artifacts | |
- name: download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
path: /tmp/artifacts | |
- run: ls -R /tmp/artifacts | |
- name: publish to github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: /tmp/artifacts/LegionGoRemapper/LegionGoRemapper.tar.gz | |
tag_name: ${{ github.ref_name }} | |
body: | | |
LegionGoRemapper | |
draft: false | |
prerelease: contains(github.ref, 'pre') | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |