Skip to content

Commit

Permalink
added tag autorelease
Browse files Browse the repository at this point in the history
  • Loading branch information
Allan-Nava authored Feb 3, 2023
1 parent ecf2e94 commit 97d5c4f
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/tag-autorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Release on Tag
#
on:
push:
tags:
- 'v*.*.*'
env:
APP_ENV: runner
#
jobs:
tagged-release:
name: "Tagged Release"
runs-on: "ubuntu-latest"
permissions: write-all
#
steps:
- name: Checkout code
uses: actions/checkout@v3
#
- name: Add ffmpeg dependency
uses: FedericoCarboni/setup-ffmpeg@v2
id: setup-ffmpeg
#
- name: Setup Go
uses: actions/setup-go@v3
with:
go-version: 1.19
#
- name: Build
run: go build -v ./...
#
- name: Test with the Go CLI
run: go test -v ./...
#
- name: Create release
if: startsWith(github.ref, 'refs/tags/v')
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
#
#
#
#

0 comments on commit 97d5c4f

Please sign in to comment.