new conf variables #27
Workflow file for this run
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
on: | |
push: | |
tags: | |
- 'v*' | |
name: Upload Release | |
jobs: | |
build: | |
name: Upload Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v1 | |
with: | |
go-version: 1.14.x | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build project | |
run: make version=$(echo ${{ github.ref }} | cut -d/ -f3) release | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: VigilantPI ${{ github.ref }} | |
draft: false | |
prerelease: false | |
- name: Upload Release | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./vigilantpi.tar.gz | |
asset_name: vigilantpi.tar.gz | |
asset_content_type: application/gzip |