name: Release
on:
workflow_dispatch:
inputs:
version_level:
description: 'Version bump level'
required: true
type: choice
options:
- patch
- minor
- major
default: 'patch'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: cargo plugin cache
id: cargo-plugin-cache
uses: actions/cache@v4
with:
path: ~/.cargo/bin/
key: ${{ runner.os }}-cargo-plugins
- name: install cargo plugin
if: steps.cargo-plugin-cache.outputs.cache-hit != 'true'
run: cargo install cargo-release
- name: Release
run: |
git config --global user.email "ruimo.uno@gmail.com"
git config --global user.name "Shisei Hanai"
cargo login ${{ secrets.SERDO }}
git status
cargo release -vv --execute ${{ github.event.inputs.version_level }} --no-confirm --features persistence