Skip to content

Commit

Permalink
ci: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shinebayar-g committed Sep 7, 2021
1 parent 3731f9f commit a9c4d37
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/go.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'on':
name: build

on:
push:
branches:
- main
pull_request:
branches:
- main

name: build
jobs:
build:
strategy:
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: release

on:
push:
tags:
- 'v*.*.*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.17.x
- name: Checkout code
uses: actions/checkout@v2
- name: Verification
run: go mod verify
- name: Build
run: go build -o ufw-docker-automated github.com/shinebayar-g/ufw-docker-automated
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ufw-docker-automated

0 comments on commit a9c4d37

Please sign in to comment.