From 7111c54860e1ec7bb59435da99bbc7b88fef9e8d Mon Sep 17 00:00:00 2001 From: Phoenix Himself Date: Sun, 16 Jun 2024 16:21:48 +0200 Subject: [PATCH] qf: github workflow --- .github/workflows/release.yml | 11 +++++------ Cargo.toml | 6 ++---- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4126692b..9166155d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,8 +8,8 @@ # * uploads those artifacts to temporary workflow zip # * on success, uploads the artifacts to a GitHub Release # -# Note that a GitHub Release with this tag is assumed to exist as a draft -# with the appropriate title/body, and will be undrafted for you. +# Note that the GitHub Release will be created with a generated +# title/body based on your changelogs. name: Release @@ -41,6 +41,7 @@ on: push: tags: - '**[0-9]+.[0-9]+.[0-9]+*' + pull_request: jobs: # Run 'cargo dist plan' (or host) to determine what tasks we need to do @@ -264,9 +265,7 @@ jobs: uses: ncipollo/release-action@v1 with: tag: ${{ needs.plan.outputs.tag }} - allowUpdates: true - updateOnlyUnreleased: false - omitBodyDuringUpdate: true - omitNameDuringUpdate: true + name: ${{ fromJson(needs.host.outputs.val).announcement_title }} + body: ${{ fromJson(needs.host.outputs.val).announcement_github_body }} prerelease: ${{ fromJson(needs.host.outputs.val).announcement_is_prerelease }} artifacts: "artifacts/*" diff --git a/Cargo.toml b/Cargo.toml index b15bc3a8..7560e561 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,8 +35,6 @@ installers = [] # Target platforms to build apps for (Rust target-triple syntax) targets = ["aarch64-apple-darwin", "x86_64-apple-darwin", "x86_64-unknown-linux-gnu", "x86_64-unknown-linux-musl"] # Publish jobs to run in CI -pr-run-mode = "skip" -# Whether cargo-dist should create a Github Release or use an existing draft -create-release = false -# Skip checking whether the specified configuration files are up to date +pr-run-mode = "plan" +# Allow modifying release.yml allow-dirty = ["ci"]