-
Notifications
You must be signed in to change notification settings - Fork 10
37 lines (32 loc) · 1003 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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@v3
with:
token: ${{ secrets.GH_DPRINTBOT_PAT }}
- uses: denoland/setup-deno@v1
- uses: dsherret/rust-toolchain-file@v1
- 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 https://raw.githubusercontent.com/dprint/automation/0.7.1/tasks/publish_release.ts --${{github.event.inputs.releaseKind}} plugin/Cargo.toml