Skip to content

feat(ci): add push tags v* event #8

feat(ci): add push tags v* event

feat(ci): add push tags v* event #8

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
tags:
- v*
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Check go mod
run: go mod tidy
- name: Build
run: go build -v ./main.go
# - name: Test
# run: go test -v ./...
release:
if: github.event_name == 'push' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/upload-artifact@v4
with:
name: go-commit-tag
path: ./main