Skip to content
This repository was archived by the owner on Oct 24, 2024. It is now read-only.

Commit f860036

Browse files
committed
update workflows
1 parent cdf153d commit f860036

1 file changed

Lines changed: 10 additions & 21 deletions

File tree

.github/workflows/package.yaml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@ on:
44
push:
55
tags:
66
- 'v*'
7-
pull_request:
8-
branches:
9-
- main
10-
- development
11-
127

138
jobs:
14-
build:
9+
release_package:
10+
if: ${{ startsWith(github.ref, 'refs/tags/v')}}
11+
needs: build
1512
runs-on: ubuntu-latest
13+
14+
permissions:
15+
contents: read
16+
packages: write
17+
1618
steps:
17-
- name: Checkout Code
19+
- name: Checkout repository
1820
uses: actions/checkout@v4
1921

2022
- name: Setup Go
@@ -28,20 +30,7 @@ jobs:
2830
2931
- name: Build
3032
run: |
31-
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -o main
32-
33-
release_package:
34-
if: ${{ startsWith(github.ref, 'refs/tags/v')}}
35-
needs: build
36-
runs-on: ubuntu-latest
37-
38-
permissions:
39-
contents: read
40-
packages: write
41-
42-
steps:
43-
- name: Checkout repository
44-
uses: actions/checkout@v4
33+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -buildvcs=false -o main
4534
4635
- name: Extract Release Tag
4736
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

0 commit comments

Comments
 (0)