diff options
| author | Victor Kareh <[email protected]> | 2025-09-22 16:22:26 -0400 |
|---|---|---|
| committer | Luke from DC <[email protected]> | 2025-09-22 21:49:07 +0000 |
| commit | 80de4ab8e387d132775bc559e7e2459ea3f703ef (patch) | |
| tree | b9b0a103545a704ec64588a0975b512d76748f9c /.github/workflows/release.yml | |
| parent | 42a17368923adf3e17cc606ad464c0b2fd19d56f (diff) | |
| download | marco-80de4ab8e387d132775bc559e7e2459ea3f703ef.tar.bz2 marco-80de4ab8e387d132775bc559e7e2459ea3f703ef.tar.xz | |
ci: Trigger full release on new tag
Whenever there's a new v* tag, GitHub will use distcheck to generate
tarballs, create a proper release, and trigger the mate-desktop.org
webhook.
Diffstat (limited to '.github/workflows/release.yml')
| -rw-r--r-- | .github/workflows/release.yml | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 711417b7..d5c7d3cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,14 @@ jobs: run: sudo .github/workflows/mate-desktop.sh ${{env.MATE_DESKTOP_VERSION}} ${{ env.CACHE_PATH }} - name: Build the source code - run: .github/workflows/builds.sh meson + run: .github/workflows/builds.sh autotools + + - name: Generate release tarball and checksums + run: | + make distcheck + TARBALL=$(ls marco-*.tar.xz | head -1) + sha256sum "$TARBALL" > "$TARBALL.sha256" + md5sum "$TARBALL" > "$TARBALL.md5" - name: Install GH CLI uses: dev-hanz-ops/[email protected] @@ -34,6 +41,12 @@ jobs: - name: Create github release run: | - gh release create ${{ github.ref_name }} --title ${{ github.ref_name }} --generate-notes _build/meson-dist/* + gh release create ${{ github.ref_name }} --title "Marco ${{ github.ref_name }}" --generate-notes marco-*.tar.xz marco-*.tar.xz.sha256 marco-*.tar.xz.md5 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Notify MATE release server + run: | + curl -X POST -H "Content-Type: application/json" \ + -d "{\"tag\": \"${{ github.ref_name }}\", \"repository\": \"${{ github.repository }}\", \"release_url\": \"https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}\"}" \ + https://release.mate-desktop.org/release || echo "::warning::Release notification failed" |
