mirror of
https://github.com/egorovna-developments/rule-set.git
synced 2026-05-17 02:32:28 +07:00
Refactor build workflow to consolidate sing-box installation
This commit is contained in:
@@ -27,18 +27,16 @@ jobs:
|
|||||||
uses: EndBug/add-and-commit@v9
|
uses: EndBug/add-and-commit@v9
|
||||||
with:
|
with:
|
||||||
message: 'Update subnets'
|
message: 'Update subnets'
|
||||||
- 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: List files
|
|
||||||
run: ls -la
|
|
||||||
- name: Set up variables
|
- name: Set up variables
|
||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "date_now=$(date +"%Y-%m-%d %T")" >> "${GITHUB_OUTPUT}"
|
echo "date_now=$(date +"%Y-%m-%d %T")" >> "${GITHUB_OUTPUT}"
|
||||||
|
- name: Install sing-box and build srs
|
||||||
|
run: |
|
||||||
|
curl -fsSL https://sing-box.app/install.sh | sh
|
||||||
|
sing-box rule-set compile --output domains.srs domains.json
|
||||||
|
sing-box rule-set compile --output subnets.srs subnets.json
|
||||||
|
ls -l
|
||||||
- name: Upload files to Releases
|
- name: Upload files to Releases
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user