Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
antham committed Feb 12, 2024
1 parent 066172f commit be3439c
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
pull-request-branch-name:
separator: "-"
open-pull-requests-limit: 10
16 changes: 16 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Go

on:
push:
tags:
- v*
branches:
- master
- main
pull_request:
permissions:
contents: read

jobs:
call-workflow:
uses: antham/go-workflow-github-action/.github/workflows/build.yml@master
13 changes: 13 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Create the release

on:
push:
tags:
- "*"

permissions:
contents: write

jobs:
call-workflow:
uses: antham/go-workflow-github-action/.github/workflows/create-release.yml@master
14 changes: 14 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
ldflags:
- -X 'github.com/antham/wo/cmd.appVersion={{.Version}}'

0 comments on commit be3439c

Please sign in to comment.