Skip to content

Merge pull request #15 from JoshiiSinfield/dependabot/go_modules/gith… #34

Merge pull request #15 from JoshiiSinfield/dependabot/go_modules/gith…

Merge pull request #15 from JoshiiSinfield/dependabot/go_modules/gith… #34

name: Build and Release a Version
on:
push:
branches:
- master
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.19
uses: actions/setup-go@v3
with:
go-version: 1.19
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Build
run: go build -v ./...
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
id: semantic
with:
branch: master
extra_plugins: |
@semantic-release/git
@semantic-release/changelog
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}