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: reorganize release job steps

Timothy Yin0290bcd35ff1
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml
index d344409e..fade5e7b 100644
--- a/.github/workflows/docker-image.yml
+++ b/.github/workflows/docker-image.yml
@@ -70,25 +70,6 @@ jobs:
echo "$changelog" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
- - name: 📝 Create Release
- uses: softprops/action-gh-release@v2
- if: github.ref_type == 'tag'
- with:
- tag_name: v${{ steps.version.outputs.version }}
- name: Release v${{ steps.version.outputs.version }}
- body: ${{ steps.changelog.outputs.changelog }}
- prerelease: ${{ steps.version.outputs.prerelease == 'true' }}
-
- - name: 📢 Anounce Release in Discord
- uses: SethCohen/github-releases-to-discord@v1
- 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
-
build-and-push:
needs: prepare
strategy:
@@ -269,3 +250,34 @@ jobs:
fi
echo "" >> $GITHUB_STEP_SUMMARY
echo "**Platforms:** \`linux/amd64\`, \`linux/arm64\`" >> $GITHUB_STEP_SUMMARY
+
+ release:
+ needs:
+ - prepare
+ - manifest
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: write
+ env:
+ VERSION: ${{ needs.prepare.outputs.version }}
+ IS_PRERELEASE: ${{ needs.prepare.outputs.prerelease }}
+ steps:
+ - name: 📝 Create Release
+ uses: softprops/action-gh-release@v2
+ if: github.ref_type == 'tag'
+ with:
+ tag_name: v${{ env.VERSION }}
+ 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