Skip to content

Commit

Permalink
fix: release tag name and add PR closed action
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslanti committed May 8, 2024
1 parent a160963 commit 5417eed
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Continuous Delivery

on:
pull_request:
types:
- closed

env:
CARGO_TERM_COLOR: always

jobs:
if_merged:
if: github.event.pull_request.merged == true
runs-on: "self-hosted"
steps:
- name: Clone repo
uses: actions/checkout@v4
with:
submodules: recursive

- name: Run Release PR
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,3 @@ jobs:
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Release PR
uses: MarcoIeni/release-plz-action@v0.5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 2 additions & 0 deletions release-plz.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[workspace]
git_tag_name = "v{{ version }}"

0 comments on commit 5417eed

Please sign in to comment.