-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 1.04 KB
/
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
38
39
40
name: Semantic release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.15
uses: actions/setup-go@v1
with:
go-version: 1.15
- name: Set up Node 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Check out code into the Go module directory
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Log into DockerHub registry
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login docker.io -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin
- name: Install semantic-release
run: npm install [email protected] @semantic-release/[email protected] @semantic-release/[email protected]
- name: Release eventually
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GIT_AUTHOR_NAME: "mgoltzsche"
GIT_AUTHOR_EMAIL: "[email protected]"
GIT_COMMITTER_NAME: "mgoltzsche"
GIT_COMMITTER_EMAIL: "[email protected]"
run: npx semantic-release