This repository has been archived by the owner on Jan 21, 2025. It is now read-only.
Release #1
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" | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: robinraju/[email protected] | |
id: download_playnite | |
with: | |
repository: "JosefNemec/Playnite" | |
latest: true | |
tarBall: false | |
zipBall: false | |
fileName: "Playnite*.zip" | |
out-file-path: playnite | |
extract: true | |
- run: | | |
dotnet build src -c Release | |
playnite/Toolbox.exe pack src/bin/Release/net462/ dist | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: artifacts | |
path: | | |
dist/*.pext | |
release: | |
name: "Release" | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get Version | |
id: version | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq '.Version' extension.yaml | |
- name: Pull artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
name: artifacts | |
- run: | | |
mv PCGamingWikiMetadata_*.pext PCGamingWiki_Metadata_Provider_v${{ steps.version.outputs.result }}.pext | |
- uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.ACTIONS_TOKEN }}" | |
prerelease: false | |
automatic_release_tag: "v${{ steps.version.outputs.result }}" | |
files: | | |
*.pext |