mirror of
https://github.com/Sagit-chu/flvx.git
synced 2026-10-05 09:36:37 +08:00
增加协议屏蔽支持
This commit is contained in:
@@ -16,12 +16,8 @@ jobs:
|
|||||||
if: contains(github.event.head_commit.message, '[skip gost]') == false
|
if: contains(github.event.head_commit.message, '[skip gost]') == false
|
||||||
name: Build & Compress GOST Binary
|
name: Build & Compress GOST Binary
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Check for GOST changes
|
- name: Check for GOST changes
|
||||||
uses: dorny/paths-filter@v2
|
uses: dorny/paths-filter@v2
|
||||||
@@ -68,14 +64,34 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
upx --best --lzma gost
|
upx --best --lzma gost
|
||||||
|
|
||||||
- name: Commit and push GOST binary
|
- name: Create Release
|
||||||
if: steps.gost-changes.outputs.gost == 'true'
|
if: steps.gost-changes.outputs.gost == 'true'
|
||||||
run: |
|
id: create_release
|
||||||
git config --local user.email "action@github.com"
|
uses: actions/create-release@v1
|
||||||
git config --local user.name "GitHub Action"
|
env:
|
||||||
git add go-gost/gost
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git commit -m "Update GOST binary [skip ci]" || echo "No changes to commit"
|
with:
|
||||||
git push
|
tag_name: gost-latest
|
||||||
|
release_name: GOST Binary Latest
|
||||||
|
body: |
|
||||||
|
GOST binary compiled from commit ${{ github.sha }}
|
||||||
|
|
||||||
|
- Platform: Linux AMD64
|
||||||
|
- Compressed with UPX
|
||||||
|
- Build date: ${{ github.event.head_commit.timestamp }}
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
|
||||||
|
- name: Upload GOST binary to Release
|
||||||
|
if: steps.gost-changes.outputs.gost == 'true'
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ./go-gost/gost
|
||||||
|
asset_name: gost
|
||||||
|
asset_content_type: application/octet-stream
|
||||||
|
|
||||||
build-vite:
|
build-vite:
|
||||||
if: contains(github.event.head_commit.message, '[skip vite]') == false
|
if: contains(github.event.head_commit.message, '[skip vite]') == false
|
||||||
|
|||||||
@@ -147,4 +147,5 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o gost
|
// GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o gost
|
||||||
|
//
|
||||||
// upx --best --lzma gost
|
// upx --best --lzma gost
|
||||||
|
|||||||
Reference in New Issue
Block a user