-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (30 loc) · 1023 Bytes
/
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
name: Release
on: [push]
jobs:
test:
runs-on: ubuntu-latest
name: Release
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Semantic Release
uses: ./
id: release
- name: Get the output
run: |
echo "Version: ${{ steps.release.outputs.version }}"
echo "Tag: ${{ steps.release.outputs.tag }}"
echo "Name: ${{ steps.release.outputs.name }}"
echo "Notes: ${{ steps.release.outputs.notes }}"
echo "Type: ${{ steps.release.outputs.type }}"
echo "Channel: ${{ steps.release.outputs.channel }}"
- name: Publish Github Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ steps.release.outputs.tag }}
release_name: ${{ steps.release.outputs.name }}
body: ${{ steps.release.outputs.notes }}
draft: false
prerelease: ${{ !!steps.release.outputs.channel }}