sing-box-ruleset/.github/workflows/release.yaml

35 lines
657 B
YAML
Raw Normal View History

2023-12-04 18:45:22 +08:00
name: build rule set
2023-12-04 19:26:08 +08:00
permissions:
contents: write
2023-12-04 18:45:22 +08:00
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: Build
run: bash ./build-adguard.sh
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