Skip to content

Commit

Permalink
ci: automate creation of GitHub releases and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh committed Jul 23, 2024
1 parent d97d6e4 commit 13dca86
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release Checker

on:
pull_request_target:
paths: [ 'Cargo.toml' ]
paths: ${{{ .github.languages | map(select(. == "Rust")) | if length == 0 then ["version.json"] else ["Cargo.toml"] end }}}
types: [ opened, synchronize, reopened, labeled, unlabeled ]
workflow_dispatch:

Expand All @@ -16,6 +16,6 @@ concurrency:

jobs:
release-check:
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@rust
uses: ipdxco/unified-github-workflows/.github/workflows/release-check.yml@${{{ .config.versions.uci // (.source.tag | sub("\\.[^.\\-\\+]+(?=\\-|\\+|$)"; "")) }}}
with:
sources: '["Cargo.toml"]'
sources: '${{{ .github.languages | map(select(. == "Rust")) | if length == 0 then ["version.json"] else ["Cargo.toml"] end }}}'
4 changes: 2 additions & 2 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Releaser

on:
push:
paths: [ 'Cargo.toml' ]
paths: ["Cargo.toml"]
workflow_dispatch:

permissions:
Expand All @@ -14,7 +14,7 @@ concurrency:

jobs:
releaser:
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@rust
uses: ipdxco/unified-github-workflows/.github/workflows/releaser.yml@v1.0
with:
sources: '["Cargo.toml"]'
secrets:
Expand Down

0 comments on commit 13dca86

Please sign in to comment.