-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automated builds and releases using GitHub Actions (#56)
* Automated builds and releases using GitHub Actions * Automated builds and releases using GitHub Actions * Automated builds and releases using GitHub Actions
- Loading branch information
1 parent
a6eb912
commit 6f1c5ab
Showing
4 changed files
with
76 additions
and
60 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: "Release" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: robinraju/release-downloader@v1.8 | ||
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 LudusaviRestic_*.pext LudusaviRestic_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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
bin/ | ||
dist/ | ||
.distraw/ | ||
obj/ | ||
tmp/ | ||
*.sln | ||
*.pext |