Skip to content

Commit

Permalink
Add GitHub Release-Action
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-tra committed Feb 2, 2021
1 parent a1a0802 commit a951f82
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
on:
push:
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Release

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checking out code
uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.15.6'
- name: Building release binaries
run: make release
- name: Creating Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: '["./out/pcp-*"]'

0 comments on commit a951f82

Please sign in to comment.