-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 977 Bytes
/
rust_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
# Based on https://github.com/taiki-e/parse-changelog/blob/777a82184bcbe0ed975e63a491f5fbf80b29cb1b/.github/workflows/release.yml
name: Rust Github Release
permissions:
# TODO: once `releases: write` is supported, use it instead.
contents: write
on:
push:
tags:
- v[0-9]+.*
defaults:
run:
shell: bash
jobs:
call_rust_validation:
uses: ./.github/workflows/rust_validation.yml
secrets: inherit
create-release:
needs: call_rust_validation
if: github.repository_owner == 'ink-feather-org'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/taiki-e/create-gh-release-action
- uses: taiki-e/create-gh-release-action@v1
with:
title: $version
changelog: CHANGELOG.md
# Only accept releases from the main branch
branch: main
# (Required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}