Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/hang666/s5light
Browse files Browse the repository at this point in the history
  • Loading branch information
hang666 committed Dec 2, 2022
2 parents 80cee0f + ec03fb2 commit 883569b
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Setup Go
uses: actions/setup-go@v3
with:
check-latest: true
go-version: '1.19.3'

- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Cache go module
uses: actions/cache@v2
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Get dependencies, run test
run: |
go test ./...
- name: Build
if: startsWith(github.ref, 'refs/tags/')
env:
NAME: s5light
BINDIR: bin
run: make -j releases

- name: Upload Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/*
draft: true

0 comments on commit 883569b

Please sign in to comment.