Skip to content

Commit

Permalink
Merge pull request #8 from ShimShtein/add_release_action
Browse files Browse the repository at this point in the history
Add release workflow
  • Loading branch information
ShimShtein authored Apr 4, 2022
2 parents 23cd654 + bb65d66 commit bebe9be
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Generate release-artifacts

# on events
on:
push:
tags:
- 'v*'

# workflow tasks
jobs:
generate:
name: Generate cross-platform builds
runs-on: ubuntu-latest
steps:
- uses: olegtarasov/[email protected]
id: tagName
with:
tagRegex: "v(.*)" # Optional. Returns specified group text as tag name. Full tag string is returned if regex is not defined.
tagRegexGroup: 1 # Optional. Default is 1.
- name: Checkout the repository
uses: actions/checkout@v2
- name: Generate build files
uses: thatisuday/[email protected]
with:
platforms: 'linux/amd64'
package: 'src'
name: 'yggdrasil-worker-forwarder-${{ steps.tagName.outputs.tag }}'
compress: 'true'
dest: 'dist'
- name: Generate distribution tarball
run: |
make distribution-tarball
sudo mv *.tar.gz dist/
env:
VERSION: '${{ steps.tagName.outputs.tag }}'
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: dist/*
tag: ${{ github.ref }}
overwrite: true
file_glob: true

0 comments on commit bebe9be

Please sign in to comment.