From 246191a64f12fcc9020e6c7666a07a7f92259617 Mon Sep 17 00:00:00 2001 From: Dongdong Tian Date: Fri, 9 Oct 2026 16:28:12 +0800 Subject: [PATCH] CI: Remove the draft-release workflow --- .github/workflows/draft-release.yml | 79 -------------------------- doc/rst/source/devdocs/maintenance.rst | 15 ++--- 2 files changed, 4 insertions(+), 90 deletions(-) delete mode 100644 .github/workflows/draft-release.yml diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml deleted file mode 100644 index 553354e3c5b..00000000000 --- a/.github/workflows/draft-release.yml +++ /dev/null @@ -1,79 +0,0 @@ -# -# Make a draft release when tagging -# -# The release assets are automatically downloaded from the GMT FTP server and uploaded -# to GitHub. -# - -on: - push: - # Sequence of patterns matched against refs/tags/x.x.x and refs/tags/x.x.xrcx - tags: - # Push events to matching versions, e.g., 6.1.0, 6.1.0rc1 - - '[0-9]+.[0-9]+.[0-9]+' - - '[0-9]+.[0-9]+.[0-9]+rc[0-9]+' - -name: Create a Draft Release - -jobs: - draft-release: - name: Create a Draft Release - runs-on: macos-latest # Have to use macos because linux sometimes timeouts - steps: - - - name: Set GMT version from tag name - # ${GITHUB_REF} is "refs/tags/6.0.0" for tags - # after this step, the GMT version can be used as ${{ env.GMT_VERSION }} - run: echo "GMT_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV - # Uncomment the following line for debugging only - # run: echo "GMT_VERSION=${DEBUG_GITHUB_REF##*/}" >> $GITHUB_ENV - - - name: Download GMT tarballs and installers - run: | - curl -O ftp://ftp.soest.hawaii.edu/gmt/bin/gmt-${{ env.GMT_VERSION }}-darwin-x86_64.dmg - curl -O ftp://ftp.soest.hawaii.edu/gmt/bin/gmt-${{ env.GMT_VERSION }}-darwin-arm64.dmg - curl -O ftp://ftp.soest.hawaii.edu/gmt/gmt-${{ env.GMT_VERSION }}-src.tar.gz - curl -O ftp://ftp.soest.hawaii.edu/gmt/gmt-${{ env.GMT_VERSION }}-src.tar.xz - curl -O ftp://ftp.soest.hawaii.edu/gmt/bin/gmt-${{ env.GMT_VERSION }}-win64.exe - curl -O ftp://ftp.soest.hawaii.edu/gmt/bin/gmt-${{ env.GMT_VERSION }}-win64.zip - - - name: Checksum - run: | - shasum -a 256 \ - gmt-${{ env.GMT_VERSION }}-darwin-x86_64.dmg \ - gmt-${{ env.GMT_VERSION }}-darwin-arm64.dmg \ - gmt-${{ env.GMT_VERSION }}-src.tar.gz \ - gmt-${{ env.GMT_VERSION }}-src.tar.xz \ - gmt-${{ env.GMT_VERSION }}-win64.exe \ - gmt-${{ env.GMT_VERSION }}-win64.zip \ - > gmt-${{ env.GMT_VERSION }}-checksums.txt - # Display the checksums - cat gmt-${{ env.GMT_VERSION }}-checksums.txt - - - name: Create a Draft Release - id: create_release - uses: softprops/action-gh-release@v3 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - name: ${{ env.GMT_VERSION }} - body: | - | **File** | **Description** | - |--------------------------------|-----------------------------------------| - | gmt-${{ env.GMT_VERSION }}-checksums.txt | sha256sum of source and binary packages | - | gmt-${{ env.GMT_VERSION }}-darwin-x86_64.dmg | macOS bundle (intel) | - | gmt-${{ env.GMT_VERSION }}-darwin-arm64.dmg | macOS bundle (arm64) | - | gmt-${{ env.GMT_VERSION }}-src.tar.gz | Source code | - | gmt-${{ env.GMT_VERSION }}-src.tar.xz | Source code | - | gmt-${{ env.GMT_VERSION }}-win64.exe | Windows installer (64bit) | - | gmt-${{ env.GMT_VERSION }}-win64.zip | Windows portable installer (64bit) | - draft: true - prerelease: false - files: | - gmt-${{ env.GMT_VERSION }}-checksums.txt - gmt-${{ env.GMT_VERSION }}-darwin-x86_64.dmg - gmt-${{ env.GMT_VERSION }}-darwin-arm64.dmg - gmt-${{ env.GMT_VERSION }}-src.tar.gz - gmt-${{ env.GMT_VERSION }}-src.tar.xz - gmt-${{ env.GMT_VERSION }}-win64.exe - gmt-${{ env.GMT_VERSION }}-win64.zip diff --git a/doc/rst/source/devdocs/maintenance.rst b/doc/rst/source/devdocs/maintenance.rst index 20e44f9f01b..13cf159d7ba 100644 --- a/doc/rst/source/devdocs/maintenance.rst +++ b/doc/rst/source/devdocs/maintenance.rst @@ -79,30 +79,23 @@ There are 11 configuration files located in ``.github/workflows/``: folder of the *gh-pages* branch. * Updating the ``latest`` documentation link to the new release. -7. ``draft-release.yml`` (Drafts the next release notes) - - This workflow is run to draft the next release notes when new tags are made. It downloads GMT tarballs, macOS bundle - and Windows installers from the GMT FTP server, calculate their sha256sums and save into `gmt-X.Y.Z-checksums.txt`, - draft the release notes, and uploads them as release assets. Maintainers still need to review the draft release - notes and click the "publish" button. - -8. ``lint-checker.yml`` (Run cppchecks) +7. ``lint-checker.yml`` (Run cppchecks) This workflow is run every day at 12:00 (UTC) to run `admin/run_cppcheck.sh` on the source code. -9. ``scm-check.yml`` (Check for new scientific color maps releases) +8. ``scm-check.yml`` (Check for new scientific color maps releases) This workflows is run every Sunday at 12:00 (UTC) to check whether there has been a new release of the `Scientific colour maps `_. If a new release is found, it will open an issue automatically. -10. ``tests.yml`` (Tests on Linux/macOS/Windows) +9. ``tests.yml`` (Tests on Linux/macOS/Windows) This workflow is run when Pull Requests are merged into the *master* branch, if the Pull Request involved changes to the folders that contain source code, workflows, tests, or scripts for generating documentation figures. It runs the full GMT test suite on Linux, macOS, and Windows. -11. ``release-drafter.yml`` (Drafts the next release notes) +10. ``release-drafter.yml`` (Drafts the next release notes) This workflow is run to update the next releases notes as pull requests are merged into master.