name: release
on:
workflow_dispatch:
inputs:
releaseKind:
description: Kind of release
default: minor
type: choice
options:
- patch
- minor
required: true
jobs:
rust:
name: release
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Clone repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd with:
token: '${{ secrets.GH_DPRINTBOT_PAT }}'
- uses: denoland/setup-deno@667a34cdef165d8d2b2e98dde39547c9daac7282 - uses: dsherret/rust-toolchain-file@3551321aa44dd44a0393eb3b6bdfbc5d25ecf621 - name: Bump version and tag
env:
GITHUB_TOKEN: '${{ secrets.GH_DPRINTBOT_PAT }}'
GH_WORKFLOW_ACTOR: '${{ github.actor }}'
run: |-
git config user.email "${{ github.actor }}@users.noreply.github.com"
git config user.name "${{ github.actor }}"
deno run -A jsr:@dprint/automation@0.10.3/tasks/publish-release --${{ github.event.inputs.releaseKind }}