ci(backend): release can be made manually #9
Workflow file for this run
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: | |
push: | |
branches: ["main", "ci"] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Wait on commit checks | |
uses: lewagon/wait-on-check-action@master | |
with: | |
ref: ${{ github.sha }} | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
check-name: "Check conventional commit compliance" | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git config --global user.email [email protected] | |
git config --global user.name github-actions | |
- name: Install stable toolchain | |
uses: dtolnay/rust-toolchain@stable | |
- name: Install cargo-edit | |
uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: cargo-edit | |
- name: Set up environment with Volta | |
uses: volta-cli/action@v4 | |
- name: Bump | |
id: release | |
uses: cocogitto/cocogitto-action@main | |
with: | |
check-latest-tag-only: true | |
release: true | |
git-user: "github-actions" | |
git-user-email: "[email protected]" | |
- name: Generate Changelog | |
run: cog changelog --at ${{ steps.release.outputs.version }} -t full_hash > GITHUB_CHANGELOG.md | |
- name: Upload github release | |
uses: softprops/action-gh-release@v1 | |
with: | |
body_path: GITHUB_CHANGELOG.md | |
tag_name: ${{ steps.release.outputs.version }} |