mirror of
https://github.com/itdoginfo/allow-domains.git
synced 2026-01-25 04:06:38 +03:00
32 lines
801 B
YAML
32 lines
801 B
YAML
name: Create srs
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main", "srs" ]
|
|
paths:
|
|
- .github/workflows/create-srs.yml
|
|
- Categories/**
|
|
- Services/**
|
|
- src/**
|
|
- Sing-box-compile-srs/**
|
|
|
|
jobs:
|
|
compile-and-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4.1.7
|
|
|
|
- name: Compile ruleset srs
|
|
run: |
|
|
docker run --rm \
|
|
-v ${{ github.workspace }}/Categories:/app/Categories \
|
|
-v ${{ github.workspace }}/Services:/app/Services \
|
|
-v ${{ github.workspace }}/SRS:/app/SRS \
|
|
itdoginfo/compilesrs:0.1
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v2.1.0
|
|
with:
|
|
files: "${{ github.workspace }}/SRS/*.srs"
|
|
tag_name: latest |