Files
allow-domains/.github/workflows/create-srs.yml
itdoginfo 102238c6ed test
2025-01-27 15:33:11 +03:00

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