|
@@ -183,13 +183,17 @@ jobs:
|
|
|
cd ../..
|
|
cd ../..
|
|
|
|
|
|
|
|
- name: Package
|
|
- name: Package
|
|
|
- run: tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
|
|
|
|
|
|
+ run: |
|
|
|
|
|
+ tar -zcvf x-ui-linux-${{ matrix.platform }}.tar.gz x-ui
|
|
|
|
|
+ sha256sum x-ui-linux-${{ matrix.platform }}.tar.gz > x-ui-linux-${{ matrix.platform }}.tar.gz.sha256
|
|
|
|
|
|
|
|
- name: Upload files to Artifacts
|
|
- name: Upload files to Artifacts
|
|
|
uses: actions/upload-artifact@v7
|
|
uses: actions/upload-artifact@v7
|
|
|
with:
|
|
with:
|
|
|
name: x-ui-linux-${{ matrix.platform }}
|
|
name: x-ui-linux-${{ matrix.platform }}
|
|
|
- path: ./x-ui-linux-${{ matrix.platform }}.tar.gz
|
|
|
|
|
|
|
+ path: |
|
|
|
|
|
+ ./x-ui-linux-${{ matrix.platform }}.tar.gz
|
|
|
|
|
+ ./x-ui-linux-${{ matrix.platform }}.tar.gz.sha256
|
|
|
|
|
|
|
|
- name: Upload files to GH release
|
|
- name: Upload files to GH release
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
uses: svenstaro/upload-release-action@v2
|
|
@@ -197,8 +201,8 @@ jobs:
|
|
|
with:
|
|
with:
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
tag: ${{ github.ref_name }}
|
|
tag: ${{ github.ref_name }}
|
|
|
- file: x-ui-linux-${{ matrix.platform }}.tar.gz
|
|
|
|
|
- asset_name: x-ui-linux-${{ matrix.platform }}.tar.gz
|
|
|
|
|
|
|
+ file: x-ui-linux-${{ matrix.platform }}.tar.gz*
|
|
|
|
|
+ file_glob: true
|
|
|
overwrite: true
|
|
overwrite: true
|
|
|
prerelease: true
|
|
prerelease: true
|
|
|
|
|
|
|
@@ -316,12 +320,16 @@ jobs:
|
|
|
shell: pwsh
|
|
shell: pwsh
|
|
|
run: |
|
|
run: |
|
|
|
Compress-Archive -Path .\x-ui -DestinationPath "x-ui-windows-amd64.zip"
|
|
Compress-Archive -Path .\x-ui -DestinationPath "x-ui-windows-amd64.zip"
|
|
|
|
|
+ $hash = (Get-FileHash x-ui-windows-amd64.zip -Algorithm SHA256).Hash.ToLower()
|
|
|
|
|
+ [IO.File]::WriteAllText("$PWD\x-ui-windows-amd64.zip.sha256", "$hash x-ui-windows-amd64.zip`n")
|
|
|
|
|
|
|
|
- name: Upload files to Artifacts
|
|
- name: Upload files to Artifacts
|
|
|
uses: actions/upload-artifact@v7
|
|
uses: actions/upload-artifact@v7
|
|
|
with:
|
|
with:
|
|
|
name: x-ui-windows-amd64
|
|
name: x-ui-windows-amd64
|
|
|
- path: ./x-ui-windows-amd64.zip
|
|
|
|
|
|
|
+ path: |
|
|
|
|
|
+ ./x-ui-windows-amd64.zip
|
|
|
|
|
+ ./x-ui-windows-amd64.zip.sha256
|
|
|
|
|
|
|
|
- name: Upload files to GH release
|
|
- name: Upload files to GH release
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
uses: svenstaro/upload-release-action@v2
|
|
@@ -329,8 +337,8 @@ jobs:
|
|
|
with:
|
|
with:
|
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
tag: ${{ github.ref_name }}
|
|
tag: ${{ github.ref_name }}
|
|
|
- file: x-ui-windows-amd64.zip
|
|
|
|
|
- asset_name: x-ui-windows-amd64.zip
|
|
|
|
|
|
|
+ file: x-ui-windows-amd64.zip*
|
|
|
|
|
+ file_glob: true
|
|
|
overwrite: true
|
|
overwrite: true
|
|
|
prerelease: true
|
|
prerelease: true
|
|
|
|
|
|
|
@@ -398,4 +406,4 @@ jobs:
|
|
|
--target "${COMMIT}" --title "Dev build ${short}" --notes "${notes}"
|
|
--target "${COMMIT}" --title "Dev build ${short}" --notes "${notes}"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
- retry gh release upload dev-latest dev-artifacts/*.tar.gz dev-artifacts/*.zip --clobber
|
|
|
|
|
|
|
+ retry gh release upload dev-latest dev-artifacts/*.tar.gz dev-artifacts/*.zip dev-artifacts/*.sha256 --clobber
|