Template
Merge in the Release-Plz Setup (#6)
Lint & Build / Linting (push) Successful in 1m23s
Lint & Build / Build (push) Successful in 1m1s
Lint & Build / Test (push) Successful in 1m35s
Lint & Build / Cross-Build-Windows (push) Successful in 2m6s
Lint & Build / Cross-Build-Linux (push) Successful in 2m12s
Lint & Build / Cross-Build-MacOS (push) Successful in 2m48s
Lint & Build / Linting (push) Successful in 1m23s
Lint & Build / Build (push) Successful in 1m1s
Lint & Build / Test (push) Successful in 1m35s
Lint & Build / Cross-Build-Windows (push) Successful in 2m6s
Lint & Build / Cross-Build-Linux (push) Successful in 2m12s
Lint & Build / Cross-Build-MacOS (push) Successful in 2m48s
This Pull Request will setup the process of Automatic release of everything in the workspace. Adds in a README.md file. --------- Co-authored-by: ci-bot <bot@email.melfely.com> Reviewed-on: #6 Co-authored-by: Melfely <bug362@outlook.com>
This commit was merged in pull request #6.
This commit is contained in:
@@ -0,0 +1,82 @@
|
||||
name: Release-plz
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- [main, master]
|
||||
|
||||
jobs:
|
||||
|
||||
# Release unpublished packages.
|
||||
release-plz-release:
|
||||
name: Release-plz release
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: read
|
||||
|
||||
steps:
|
||||
|
||||
- &setup-git-user
|
||||
name: Config Git User
|
||||
run: |
|
||||
git config --global user.name "ci-bot"
|
||||
git config --global user.email "bot@email.melfely.com"
|
||||
|
||||
- &checkout
|
||||
name: Checkout repository
|
||||
uses: actions/checkout@v6
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- &install-rust
|
||||
name: Install Rust toolchain
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- &install-cargo-semver
|
||||
name: Install Cargo SemVer Checks
|
||||
uses: taiki-e/install-action@fa23953489c080190314742a9b907f8e97c6767c # v2.87.10
|
||||
with:
|
||||
tool: cargo-semver-checks
|
||||
|
||||
- &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 "Bearer ${{ secrets.CARGO_REGISTRIES_GITEA_TOKEN }}"
|
||||
# Create a PR with the new versions and changelog, preparing the next releases
|
||||
release-plz-pr:
|
||||
name: Release-plz PR
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
pull-requests: write
|
||||
|
||||
concurrency:
|
||||
group: release-plz-${{ github.ref }}
|
||||
cancel-in-progress: false
|
||||
|
||||
steps:
|
||||
- *setup-git-user
|
||||
- *checkout
|
||||
- *install-rust
|
||||
- *install-cargo-semver
|
||||
- *install-release-plz
|
||||
|
||||
- name: Fill Credentials
|
||||
run: |
|
||||
git config --global credential.helper store
|
||||
echo "https://ci-bot:${{ secrets.GITEA_TOKEN }}@gitea.melfely.com" > ~/.git-credentials
|
||||
|
||||
- name: Run release-plz release-pr
|
||||
run: |
|
||||
release-plz release-pr --forge gitea --git-token ${{ secrets.GITEA_TOKEN }} --registry gitea
|
||||
Reference in New Issue
Block a user