-
Notifications
You must be signed in to change notification settings - Fork 29
43 lines (39 loc) · 991 Bytes
/
release.yaml
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
40
41
42
43
name: release
on:
push:
tags:
- 'v*'
inputs:
dry_run:
description: "Dry run the workflow?"
required: true
default: false
workflow_dispatch:
inputs:
dry_run:
description: "Dry run the workflow?"
required: true
default: true
tag:
description: "Tag to use for the release"
required: true
jobs:
release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- uses: katyo/publish-crates@v1
with:
args: "--features bundled-4_3_1"
dry-run: ${{ github.event.inputs.dry_run }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
# TODO Make it grab the changelog from CHANGELOG.md
# - uses: ncipollo/release-action@v1
# with:
# token: ${{ secrets.GITHUB_TOKEN }}