Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit f152c42

Browse files
authored
Merge pull request #120 from grzesuav/try_gh_token
fix(Release): Use GH_TOKEN to trigger release
2 parents 3293ede + 90e430e commit f152c42

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

.github/workflows/release-docker.yaml

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,13 @@
11
---
22
name: Release docker image
33
on:
4-
create:
4+
push:
55
tags:
66
- 'v[0-9]+.[0-9]+.[0-9]+'
77
jobs:
8-
tests:
9-
runs-on: ubuntu-18.04
10-
strategy:
11-
matrix:
12-
test: ['unit-test', 'integration-test']
13-
name: ${{ matrix.test }}
14-
steps:
15-
- name: Checkout
16-
uses: actions/checkout@v2
17-
- name: setup env
18-
run: |
19-
echo "::set-env name=GOPATH::$(go env GOPATH)"
20-
echo "::add-path::$(go env GOPATH)/bin"
21-
- name: Setup go
22-
uses: actions/setup-go@v1
23-
with:
24-
go-version: 1.13.5
25-
- run: make ${{ matrix.test }}
268
release-docker:
279
name: Release docker image
2810
runs-on: ubuntu-18.04
29-
needs: ['tests']
30-
if: startsWith(github.ref, 'refs/tags/v')
3111
steps:
3212
- name: Checkout
3313
uses: actions/checkout@v2

.github/workflows/test-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@ jobs:
3535
run: npm install ci
3636
- name: Release
3737
env:
38-
GITHUB_TOKEN: ${{ secrets.PAT }}
38+
GH_TOKEN: ${{ secrets.PAT }}
3939
run: npx semantic-release

0 commit comments

Comments
 (0)