Skip to content

Self-hosted personal gallery application with online photo management and albums, supporting Live/Motion Photos, EXIF parsing, geolocation recognition, and an explore map.

ci: fix discord anounce

Timothy Yin881cd4e96fd9
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index fade5e7b..277131c0 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -270,14 +270,3 @@ jobs:
name: Release v${{ env.VERSION }}
body: ${{ needs.prepare.outputs.changelog }}
prerelease: ${{ env.IS_PRERELEASE == 'true' }}
-
- - name: 📢 Announce Release in Discord
- uses: SethCohen/github-releases-to-discord@v1
- if: github.ref_type == 'tag'
- with:
- webhook_url: ${{ secrets.DC_WEBHOOK_URL }}
- color: "2105893"
- username: "GitHub Release"
- avatar_url: "https://cdn.discordapp.com/avatars/1431138378203533312/59c6a41905663993a03d37c6608dea68.png"
- footer_title: "Changelog"
- reduce_headings: true
diff --git a/.github/workflows/github-releases-to-discord.yml b/.github/workflows/github-releases-to-discord.yml
new file mode 100644
index 00000000..b6a729d7
--- /dev/null
+++ b/.github/workflows/github-releases-to-discord.yml
@@ -0,0 +1,21 @@
+on:
+ release:
+ types: [published]
+
+jobs:
+ github-releases-to-discord:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v3
+
+ - name: 📢 Announce Release in Discord
+ uses: SethCohen/github-releases-to-discord@v1
+ if: github.ref_type == 'tag'
+ with:
+ webhook_url: ${{ secrets.DC_WEBHOOK_URL }}
+ color: "2105893"
+ username: "GitHub Release"
+ avatar_url: "https://cdn.discordapp.com/avatars/1431138378203533312/59c6a41905663993a03d37c6608dea68.png"
+ footer_title: "Changelog"
+ reduce_headings: true