Formatting #82
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: Publish Nightly | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build Dotnet | |
run: dotnet build --no-restore --warnaserror | |
- name: "Flag as nightly in build.yaml" | |
uses: fjogeleit/yaml-update-action@v0.10.0 | |
with: | |
valueFile: 'build.yaml' | |
propertyPath: 'version' | |
value: "0.0.0.9000" | |
commitChange: false | |
updateFile: true | |
- name: "JPRM: Build" | |
id: jrpm | |
uses: oddstr13/jellyfin-plugin-repository-manager@b9e92867a6aa279d611a5ea80cf61f6358838c39 | |
with: | |
version: "0.0.0.9000" | |
verbosity: debug | |
path: . | |
dotnet-target: "net8.0" | |
output: _dist | |
- name: Prepare GitHub Release assets | |
run: |- | |
pushd _dist | |
for file in ./*.zip; do | |
md5sum ${file#./} >> ${file%.*}.md5 | |
sha256sum ${file#./} >> ${file%.*}.sha256 | |
done | |
ls -l | |
popd | |
- name: Publish output artifacts | |
id: publish-assets | |
uses: softprops/action-gh-release@50195ba7f6f93d1ac97ba8332a178e008ad176aa | |
with: | |
prerelease: false | |
fail_on_unmatched_files: true | |
tag_name: nightly | |
files: | | |
_dist/* | |
build.yaml | |
body: | | |
Nightly build | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Publish Plugin Manifest | |
uses: Kevinjil/jellyfin-plugin-repo-action@a7832ecc44c6b1a45d531970f6647b8682b005b8 | |
with: | |
ignorePrereleases: true | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
repository: ${{ github.repository }} | |
pagesBranch: manifest-release | |
pagesFile: manifest.json | |