From 97d5c4f150ccbafae9d9b3138c98db7e89f4c442 Mon Sep 17 00:00:00 2001 From: Allan Nava Date: Fri, 3 Feb 2023 14:08:47 +0100 Subject: [PATCH] added tag autorelease --- .github/workflows/tag-autorelease.yml | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/tag-autorelease.yml diff --git a/.github/workflows/tag-autorelease.yml b/.github/workflows/tag-autorelease.yml new file mode 100644 index 0000000..b16bf53 --- /dev/null +++ b/.github/workflows/tag-autorelease.yml @@ -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 + # + # + # +# \ No newline at end of file