Skip to content

Commit

Permalink
qf: github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Ph0enixKM committed Jun 16, 2024
1 parent 8ee04c4 commit 7111c54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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/*"
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 7111c54

Please sign in to comment.