-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (41 loc) · 1.12 KB
/
gem_deploy.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
38
39
40
41
42
43
name: Gem deploy
on:
push:
branches:
- master
jobs:
release:
name: Tag & Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Tag
id: tag
uses: forward3d/gh-gem-tag-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: v
- name: Read latest Changelog entry
id: changelog
run: |
echo "::set-output name=changelog::`./bin/prepare_changelog.sh`"
- name: Create release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.tag.outputs.tag }}
release_name: Release ${{ steps.tag.outputs.tag }}
body: ${{ steps.changelog.outputs.changelog }}
draft: false
prerelease: false
publish:
name: Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build and publish gem
uses: jstastny/publish-gem-to-github@master
with:
token: ${{ secrets.GITHUB_TOKEN }}
owner: forward3d