2023-12-04 18:45:22 +08:00
|
|
|
name: build rule set
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
schedule:
|
2023-12-04 18:48:06 +08:00
|
|
|
- cron: "0 3 * * *"
|
2023-12-04 18:45:22 +08:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Go 1.x
|
|
|
|
uses: actions/setup-go@v4
|
|
|
|
with:
|
|
|
|
go-version: ^1.21
|
|
|
|
id: go
|
|
|
|
|
|
|
|
- name: Check out code into the Go module directory
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Build
|
2023-12-04 18:49:19 +08:00
|
|
|
run: go run -v .
|
2023-12-04 18:45:22 +08:00
|
|
|
|
|
|
|
- name: Release
|
2023-12-04 18:51:10 +08:00
|
|
|
run: bash .github/release-rule-set.sh
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-12-04 18:45:22 +08:00
|
|
|
|