mirror of
https://github.com/xmdhs/sing-box-ruleset.git
synced 2025-02-06 13:02:43 +08:00
29 lines
561 B
YAML
29 lines
561 B
YAML
name: build rule set
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 3 * * *"
|
|
|
|
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
|
|
run: go run -v .
|
|
|
|
- name: Release
|
|
run: bash .github/release-rule-set.sh
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|