Skip to content

Commit 3355864

Browse files
committed
add release job
1 parent c692c0f commit 3355864

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# adapted from https://github.com/taiki-e/cargo-hack/blob/main/.github/workflows/release.yml
2+
3+
name: Publish release
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
9+
jobs:
10+
create-release:
11+
if: github.repository_owner == 'nextest-rs'
12+
runs-on: ubuntu-18.04
13+
steps:
14+
- uses: actions/checkout@v2
15+
with:
16+
persist-credentials: false
17+
- name: Install Rust
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
override: true
22+
- run: cargo publish
23+
env:
24+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
25+
- uses: taiki-e/create-gh-release-action@v1
26+
with:
27+
changelog: CHANGELOG.md
28+
title: datatest-stable $version
29+
branch: main
30+
prefix: datatest-stable
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)