Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 951eb7c

Browse files
committed
Release workflow
1 parent 674346e commit 951eb7c

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed

‎.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
name: CI
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
push:
8+
tags-ignore:
9+
- v*
410

511
jobs:
612
tests:

‎.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Create release
2+
3+
on:
4+
push:
5+
tags:
6+
- v*
7+
8+
jobs:
9+
tests:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Get version
13+
id: get-version
14+
uses: mad9000/actions-find-and-replace-string@2
15+
with:
16+
source: ${{ github.ref }}
17+
find: 'refs/tags/v'
18+
replace: ''
19+
20+
- name: Create Release
21+
id: create-release
22+
uses: actions/create-release@v1
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
with:
26+
tag_name: ${{ github.ref }}
27+
release_name: ${{ steps.get-version.outputs.value }}
28+
draft: false
29+
prerelease: false

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /