mirror of
https://github.com/lotabout/skim.git
synced 2026-09-10 07:16:23 -04:00
fix(ci): split release pr and gh release
This commit is contained in:
parent
ef4bae6b29
commit
0a822204ca
3
.github/release-plz.toml
vendored
3
.github/release-plz.toml
vendored
|
|
@ -6,8 +6,7 @@ git_release_enable = false
|
|||
git_tag_enable = false
|
||||
pr_branch_prefix = "release-plz-"
|
||||
pr_labels = ["release"]
|
||||
pr_name = "chore(release): release"
|
||||
release_commits = "^chore(release): release$"
|
||||
pr_name = "chore: release"
|
||||
publish = false
|
||||
publish_no_verify = true
|
||||
semver_check = true
|
||||
|
|
|
|||
40
.github/workflows/release-create.yml
vendored
Normal file
40
.github/workflows/release-create.yml
vendored
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
on:
|
||||
pull_request:
|
||||
types:
|
||||
- closed
|
||||
|
||||
name: Create GitHub release
|
||||
|
||||
jobs:
|
||||
release-pr:
|
||||
if: |
|
||||
(github.event.pull_request.merged == true) &&
|
||||
(github.repository_owner == 'skim-rs') &&
|
||||
(contains(github.event.pull_request.labels, 'release'))
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/create-github-app-token@v1
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ vars.SKIM_RS_BOT_APP_ID }}
|
||||
private-key: ${{ secrets.SKIM_RS_BOT_PRIVATE_KEY }}
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 1
|
||||
- name: Install correct toolchain
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
- id: release-pr
|
||||
uses: release-plz/action@v0.5
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
||||
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
||||
with:
|
||||
config: .github/release-plz.toml
|
||||
command: release
|
||||
|
||||
3
.github/workflows/release-pr.yml
vendored
3
.github/workflows/release-pr.yml
vendored
|
|
@ -3,7 +3,7 @@ on:
|
|||
branches:
|
||||
- master
|
||||
|
||||
name: Create release PR or create github release
|
||||
name: Create release PR
|
||||
|
||||
jobs:
|
||||
release-pr:
|
||||
|
|
@ -32,3 +32,4 @@ jobs:
|
|||
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
|
||||
with:
|
||||
config: .github/release-plz.toml
|
||||
command: release-pr
|
||||
|
|
|
|||
Loading…
Reference in a new issue