mirror of
https://github.com/egorovna-developments/rule-set.git
synced 2026-05-17 02:32:28 +07:00
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Development build
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
schedule:
|
|
- cron: '0 0 * * 1'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
linux-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout sources
|
|
uses: actions/checkout@v6
|
|
- name: Install sing-box
|
|
run: curl -fsSL https://sing-box.app/install.sh | sh
|
|
- name: Compile domains.srs
|
|
run: sing-box rule-set compile --output domains.srs domains.json
|
|
- name: Compile subnets.srs
|
|
run: sing-box rule-set compile --output subnets.srs subnets.json
|
|
- name: Compile norway.srs
|
|
run: sing-box rule-set compile --output norway.srs norway.json
|
|
- name: Set up variables
|
|
id: vars
|
|
run: echo "date_now=$(date +"%Y_%m_%d_%H_%M_%S")" >> "${GITHUB_OUTPUT}"
|
|
- name: Upload files to Releases
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
makeLatest: true
|
|
allowUpdates: true
|
|
artifactErrorsFailBuild: true
|
|
artifacts: ./*.srs
|
|
body: |
|
|
- Reference commit: ${{github.sha}}
|
|
name: ${{steps.vars.outputs.date_now}}
|
|
removeArtifacts: true
|
|
tag: ${{steps.vars.outputs.date_now}}
|