Browse Source

Create extra distribution

Shelikhoo 4 years ago
parent
commit
8479e2315e
1 changed files with 20 additions and 0 deletions
  1. 20 0
      .github/workflows/release.yml

+ 20 - 0
.github/workflows/release.yml

@@ -170,6 +170,12 @@ jobs:
         with:
         with:
           path: build_artifacts
           path: build_artifacts
 
 
+      - name: Create extra package
+        run: |
+          pushd ./release/extra/
+          zip -9vr ../../build/v2ray-extra.zip .
+          popd
+
       - name: Generate shasum
       - name: Generate shasum
         run: |
         run: |
           go get -v github.com/v2fly/V2BuildAssist/v2buildutil
           go get -v github.com/v2fly/V2BuildAssist/v2buildutil
@@ -205,6 +211,11 @@ jobs:
           name: Release.unsigned.dgst
           name: Release.unsigned.dgst
           path: build_artifacts/Release.unsigned.dgst
           path: build_artifacts/Release.unsigned.dgst
 
 
+      - uses: actions/upload-artifact@v2
+        with:
+          name: v2ray-extra.zip
+          path: build_artifacts/v2ray-extra.zip
+
       - name: Upload Release.unsigned related files
       - name: Upload Release.unsigned related files
         uses: svenstaro/upload-release-action@v2
         uses: svenstaro/upload-release-action@v2
         if: github.event_name == 'release'
         if: github.event_name == 'release'
@@ -213,3 +224,12 @@ jobs:
           file_glob: true
           file_glob: true
           file: build_artifacts/Release.unsigned*
           file: build_artifacts/Release.unsigned*
           tag: ${{ github.ref }}
           tag: ${{ github.ref }}
+
+      - name: Upload extra package
+        uses: svenstaro/upload-release-action@v2
+        if: github.event_name == 'release'
+        with:
+          repo_token: ${{ secrets.GITHUB_TOKEN }}
+          file_glob: true
+          file: build_artifacts/v2ray-extra.zip
+          tag: ${{ github.ref }}