添加singbox测试版actions文件
This commit is contained in:
21
.github/workflows/update_singbox_core_test.yaml
vendored
21
.github/workflows/update_singbox_core_test.yaml
vendored
@@ -12,7 +12,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
tag3:
|
tag3:
|
||||||
description: 'a new prerelease name or not'
|
description: 'a new prerelease name or not, if value=0, then only upload-artifact'
|
||||||
required: false
|
required: false
|
||||||
type: string
|
type: string
|
||||||
tag4:
|
tag4:
|
||||||
@@ -140,10 +140,13 @@ jobs:
|
|||||||
path: sing-box
|
path: sing-box
|
||||||
|
|
||||||
push_prerelease:
|
push_prerelease:
|
||||||
needs: cross
|
needs:
|
||||||
|
- cross
|
||||||
|
- sing-box
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
VERSION: ${{needs.sing-box.outputs.version}}
|
RELEASE: ${{ github.event.inputs.tag3 }}
|
||||||
|
VERSION: ${{ steps.sing-box.outputs.version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Get upx
|
- name: Get upx
|
||||||
run: |
|
run: |
|
||||||
@@ -174,9 +177,10 @@ jobs:
|
|||||||
done
|
done
|
||||||
rm -fr upx*
|
rm -fr upx*
|
||||||
rm -fr ./tmp/core.tar.gz
|
rm -fr ./tmp/core.tar.gz
|
||||||
echo ${VERSION} > /tmp/version
|
echo ${VERSION} > ./tmp/version
|
||||||
|
|
||||||
- name: Create Release and Upload Release Asset
|
- name: Create Release and Upload Release Asset
|
||||||
|
if: ${{ env.RELEASE != '0' }}
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
tag_name: singbox_core${{ github.event.inputs.tag3 }}
|
tag_name: singbox_core${{ github.event.inputs.tag3 }}
|
||||||
@@ -187,6 +191,15 @@ jobs:
|
|||||||
files: |
|
files: |
|
||||||
./tmp/*
|
./tmp/*
|
||||||
|
|
||||||
|
- name: upload artifact
|
||||||
|
if: ${{ env.RELEASE == '0' }}
|
||||||
|
uses: actions/upload-artifact@v4.1.0
|
||||||
|
with:
|
||||||
|
name: sing-box-${{env.VERSION}}-${{matrix.jobs.output}}
|
||||||
|
path: |
|
||||||
|
./tmp/sing-box*
|
||||||
|
compression-level: 9
|
||||||
|
|
||||||
- name: Cleanup Workflow
|
- name: Cleanup Workflow
|
||||||
uses: Mattraks/delete-workflow-runs@main
|
uses: Mattraks/delete-workflow-runs@main
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user