Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7e94c83a12 | |||
| b916c4c8fd | |||
| 35fbcbb46e |
@@ -13,7 +13,7 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
name: Create Release Tag
|
name: Create Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Validate version format
|
- name: Validate version format
|
||||||
@@ -61,3 +61,20 @@ jobs:
|
|||||||
git commit --allow-empty -m "Release v${VERSION}"
|
git commit --allow-empty -m "Release v${VERSION}"
|
||||||
git tag "v${VERSION}"
|
git tag "v${VERSION}"
|
||||||
git push origin main "v${VERSION}"
|
git push origin main "v${VERSION}"
|
||||||
|
|
||||||
|
- name: Install TinyGo
|
||||||
|
run: |
|
||||||
|
wget https://github.com/tinygo-org/tinygo/releases/download/v0.40.1/tinygo_0.40.1_amd64.deb
|
||||||
|
sudo dpkg -i tinygo_0.40.1_amd64.deb
|
||||||
|
sudo apt install -y binaryen
|
||||||
|
|
||||||
|
- name: Build and package plugin
|
||||||
|
run: make package
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
tag_name: v${{ inputs.version }}
|
||||||
|
draft: true
|
||||||
|
files: discord-rich-presence.ndp
|
||||||
|
generate_release_notes: true
|
||||||
|
|||||||
@@ -1,50 +0,0 @@
|
|||||||
name: Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags:
|
|
||||||
- "v*"
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
release:
|
|
||||||
name: Release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out code
|
|
||||||
uses: actions/checkout@v5
|
|
||||||
|
|
||||||
- name: Verify manifest version matches tag
|
|
||||||
run: |
|
|
||||||
TAG_VERSION="${GITHUB_REF_NAME#v}"
|
|
||||||
MANIFEST_VERSION=$(jq -r .version manifest.json)
|
|
||||||
if [ "$TAG_VERSION" != "$MANIFEST_VERSION" ]; then
|
|
||||||
echo "::error::Tag version ($TAG_VERSION) does not match manifest.json version ($MANIFEST_VERSION)"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set up Go
|
|
||||||
uses: actions/setup-go@v5
|
|
||||||
with:
|
|
||||||
go-version-file: go.mod
|
|
||||||
|
|
||||||
- name: Install TinyGo
|
|
||||||
run: |
|
|
||||||
wget https://github.com/tinygo-org/tinygo/releases/download/v0.40.1/tinygo_0.40.1_amd64.deb
|
|
||||||
sudo dpkg -i tinygo_0.40.1_amd64.deb
|
|
||||||
sudo apt install -y binaryen
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: make test
|
|
||||||
|
|
||||||
- name: Build and package plugin
|
|
||||||
run: make package
|
|
||||||
|
|
||||||
- name: Create release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
with:
|
|
||||||
draft: true
|
|
||||||
files: discord-rich-presence.ndp
|
|
||||||
generate_release_notes: true
|
|
||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"$schema": "https://raw.githubusercontent.com/navidrome/navidrome/refs/heads/master/plugins/manifest-schema.json",
|
"$schema": "https://raw.githubusercontent.com/navidrome/navidrome/refs/heads/master/plugins/manifest-schema.json",
|
||||||
"name": "Discord Rich Presence",
|
"name": "Discord Rich Presence",
|
||||||
"author": "Navidrome Team",
|
"author": "Navidrome Team",
|
||||||
"version": "0.2.1",
|
"version": "0.2.2",
|
||||||
"description": "Discord Rich Presence integration for Navidrome",
|
"description": "Discord Rich Presence integration for Navidrome",
|
||||||
"website": "https://github.com/navidrome/discord-rich-presence-plugin",
|
"website": "https://github.com/navidrome/discord-rich-presence-plugin",
|
||||||
"permissions": {
|
"permissions": {
|
||||||
|
|||||||
Reference in New Issue
Block a user