Skip to content

Commit 93fbad0

Browse files
test publishing
1 parent 772d50f commit 93fbad0

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Publish
2+
on:
3+
push:
4+
tags:
5+
- "v*.*.*"
6+
jobs:
7+
test:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v3
11+
- name: Set output
12+
id: vars
13+
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
14+
- name: Set up Go
15+
uses: actions/setup-go@v3
16+
with:
17+
go-version: 1.18
18+
- name: Check output
19+
env:
20+
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
21+
run: |
22+
echo $RELEASE_VERSION
23+
echo ${{ steps.vars.outputs.tag }}

.github/workflows/workflow.yml renamed to .github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
name: Go Github Mockable
2-
1+
name: Test
32
on: [push, pull_request]
4-
53
jobs:
64
test:
75
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)