Release #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: workflow_dispatch | |
jobs: | |
release: | |
if: ${{ github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.PAT }} | |
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.PAT }} | |
- run: cargo install cargo-edit --version 0.12.2 | |
- name: Install Knope | |
uses: knope-dev/action@v2.0.0 | |
with: | |
version: 0.13.2 | |
- run: | | |
git config --global user.name "${{ github.triggering_actor }}" | |
git config --global user.email "${{ github.triggering_actor}}@users.noreply.github.com" | |
- name: Prepare Release | |
run: knope release --verbose |