Template
ci: Change from release-plz action to cli
The action currently only supports github (I think) while the CLI tool claims to support gitea (the action also does...)
This commit is contained in:
@@ -28,24 +28,24 @@ jobs:
|
|||||||
- &install-rust
|
- &install-rust
|
||||||
name: Install Rust toolchain
|
name: Install Rust toolchain
|
||||||
uses: dtolnay/rust-toolchain@stable
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
- &install-gh
|
- &install-cargo-semver
|
||||||
name: Install gh cli tool
|
name: Install Cargo SemVer Checks
|
||||||
run: |
|
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
|
||||||
apt-get update
|
|
||||||
apt-get install gh -y
|
|
||||||
|
|
||||||
- name: Run release-plz
|
|
||||||
uses: release-plz/action@v0.4
|
|
||||||
with:
|
with:
|
||||||
command: release
|
tool: cargo-semver-checks
|
||||||
forge: gitea
|
|
||||||
regsitry: gitea
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}
|
|
||||||
|
|
||||||
# Create a PR with the new versions and changelog, preparing the next release.
|
- &install-release-plz
|
||||||
|
name: Install release-plz
|
||||||
|
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
|
||||||
|
with:
|
||||||
|
tool: release-plz
|
||||||
|
|
||||||
|
- name: Run release-plz release
|
||||||
|
run: |
|
||||||
|
release-plz release --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea --token ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}
|
||||||
|
|
||||||
|
# Create a PR with the new versions and changelog, preparing the next releases
|
||||||
release-plz-pr:
|
release-plz-pr:
|
||||||
name: Release-plz PR
|
name: Release-plz PR
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -62,14 +62,9 @@ jobs:
|
|||||||
|
|
||||||
- *checkout
|
- *checkout
|
||||||
- *install-rust
|
- *install-rust
|
||||||
- *install-gh
|
- *install-cargo-semver
|
||||||
|
- *install-release-plz
|
||||||
|
|
||||||
- name: Run release-plz
|
- name: Run release-plz release-pr
|
||||||
uses: release-plz/action@v0.4
|
run: |
|
||||||
with:
|
release-plz release-pr --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea
|
||||||
command: release-pr
|
|
||||||
forge: gitea
|
|
||||||
regsitry: gitea
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
|
||||||
CARGO_REGISTRIES_GITEA_TOKEN: ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user