forked from ShimShtein/yggdrasil-worker-forwarder
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request ShimShtein#10 from ShimShtein/first_build
Fix first build
- Loading branch information
Showing
2 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
push: | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
paths: | ||
- '**/.github/**/*' | ||
|
||
# workflow tasks | ||
jobs: | ||
|
@@ -19,11 +22,16 @@ jobs: | |
tagRegexGroup: 1 # Optional. Default is 1. | ||
- name: Checkout the repository | ||
uses: actions/checkout@v2 | ||
# - uses: actions/setup-go@v3 | ||
# with: | ||
# go-version: '^1.17.0' # The Go version to download (if necessary) and use. | ||
# - run: | | ||
# go vet . | ||
- name: Generate build files | ||
uses: thatisuday/[email protected] | ||
with: | ||
platforms: 'linux/amd64' | ||
package: 'src' | ||
package: '.' | ||
name: 'yggdrasil-worker-forwarder-${{ steps.tagName.outputs.tag }}' | ||
compress: 'true' | ||
dest: 'dist' | ||
|
@@ -34,6 +42,7 @@ jobs: | |
env: | ||
VERSION: '${{ steps.tagName.outputs.tag }}' | ||
- name: Upload binaries to release | ||
if: "${{ steps.tagName.outputs.tag != '' }}" # tag will be empty on pull requests, no publishing needed | ||
uses: svenstaro/upload-release-action@v2 | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters