-
Notifications
You must be signed in to change notification settings - Fork 18
39 lines (34 loc) · 978 Bytes
/
release.yml
File metadata and controls
39 lines (34 loc) · 978 Bytes
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
38
39
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@v5
with:
token: ${{ secrets.DENOBOT_PAT }}
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- uses: dsherret/rust-toolchain-file@v1
- name: Tag and release
env:
GITHUB_TOKEN: ${{ secrets.DENOBOT_PAT }}
GH_WORKFLOW_ACTOR: ${{ github.actor }}
run: |
git config user.email "denobot@users.noreply.github.com"
git config user.name "denobot"
deno run -A jsr:@deno/rust-automation@0.22.0/tasks/publish-release --${{github.event.inputs.releaseKind}} deno_cache_dir