name: Create Release on: repository_dispatch: types: [tag] jobs: build: name: Build uses: ./.github/workflows/build.yml release: name: "Create Release" needs: [build] permissions: actions: read security-events: write contents: write discussions: write runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: persist-credentials: false - name: Download artifacts uses: actions/download-artifact@v4 - name: Parse Forgejo payload uses: ./.github/workflows/parse - name: Package artifacts nicely run: | set -ex mkdir -p artifacts for arch in amd64 legacy steamdeck rog-ally aarch64 armv9 do cp linux-$arch/*.AppImage "artifacts/Eden-Linux-${FORGEJO_TAG}-${arch}.AppImage" cp linux-$arch/*.AppImage.zsync "artifacts/Eden-Linux-${FORGEJO_TAG}-${arch}.AppImage.zsync" done cp android/*.apk artifacts/Eden-Android-${FORGEJO_TAG}.apk for arch in amd64 # arm64 do cp windows-$arch/*.zip artifacts/Eden-Windows-${FORGEJO_TAG}-${arch}.zip done for ext in zip tar.zst do cp source/source.$ext artifacts/Eden-Source-${FORGEJO_TAG}.$ext done export FORGEJO_TOKEN=${{ secrets.FORGEJO_TOKEN }} ./body.sh > changelog.md - name: Delete Previous Release run: | gh release delete "$FORGEJO_TAG" --repo "${GITHUB_REPOSITORY}" --cleanup-tag -y sleep 5 env: GH_TOKEN: "${{ secrets.GITHUB_TOKEN }}" continue-on-error: true - name: Release (PR) uses: softprops/action-gh-release@v2.2.2 with: name: "${{ env.FORGEJO_TITLE }}" tag_name: ${{ env.FORGEJO_TAG }} body_path: ./changelog.md prerelease: false draft: true generate_release_notes: false fail_on_unmatched_files: false make_latest: true files: | artifacts/*