Skip to content

Commit

Permalink
ci: don't upload singtun builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Markson Hon authored and Markson Hon committed Jun 19, 2024
1 parent 74a931b commit faa7c94
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/beta_release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,12 +210,12 @@ jobs:
- name: Download Artifact Windows x64
uses: actions/download-artifact@v4
with:
name: v2raya_with_singtun_windows_x64_${{ steps.prep.outputs.VERSION }}.exe
name: v2raya_windows_x64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
- name: Download Artifact Windows arm64
uses: actions/download-artifact@v4
with:
name: v2raya_with_singtun_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe
name: v2raya_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
- name: Install Inno Setup
shell: pwsh
Expand All @@ -230,8 +230,8 @@ jobs:
New-Item -ItemType Directory -Path "D:\v2raya-arm64-windows\data"
New-Item -ItemType Directory -Path "D:\v2raya-arm64-windows\bin"
## Copy v2rayA to Destination Directory
Copy-Item -Path D:\Downloads\v2raya_with_singtun_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-arm64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_with_singtun_windows_x64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-x86_64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-arm64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_windows_x64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-x86_64-windows\bin\v2raya.exe
Copy-Item -Path ".\install\windows-inno\v2raya.ico" -Destination "D:\v2raya.ico"
## Download and extract v2ray
$Url_v2ray_x64 = "https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-windows-64.zip"
Expand Down Expand Up @@ -448,6 +448,8 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
echo "Don't upload SingTun binaries to GitHub Release for they are not stable."
rm -f release/v2raya_with_singtun_*
Latest_Releases=$(curl -s -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/v2rayA/v2rayA/releases/latest | jq -r '.tag_name')
Latest_tag=v${{ steps.prep.outputs.VERSION }}
if [ "$Latest_Releases" != "$Latest_tag" ]; then
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ jobs:
v2raya_binaries/*
Build_Windows_Installers:
runs-on: windows-latest
needs: [Build_v2rayA_SingTun_Binaries]
needs: [Build_v2rayA_Binaries]
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -212,12 +212,12 @@ jobs:
- name: Download Artifact Windows x64
uses: actions/download-artifact@v4
with:
name: v2raya_with_singtun_windows_x64_${{ steps.prep.outputs.VERSION }}.exe
name: v2raya_windows_x64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
- name: Download Artifact Windows arm64
uses: actions/download-artifact@v4
with:
name: v2raya_with_singtun_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe
name: v2raya_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe
path: D:\Downloads
- name: Install Inno Setup
shell: pwsh
Expand All @@ -232,8 +232,8 @@ jobs:
New-Item -ItemType Directory -Path "D:\v2raya-arm64-windows\data"
New-Item -ItemType Directory -Path "D:\v2raya-arm64-windows\bin"
## Copy v2rayA to Destination Directory
Copy-Item -Path D:\Downloads\v2raya_with_singtun_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-arm64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_with_singtun_windows_x64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-x86_64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_windows_arm64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-arm64-windows\bin\v2raya.exe
Copy-Item -Path D:\Downloads\v2raya_singtun_windows_x64_${{ steps.prep.outputs.VERSION }}.exe -Destination D:\v2raya-x86_64-windows\bin\v2raya.exe
Copy-Item -Path ".\install\windows-inno\v2raya.ico" -Destination "D:\v2raya.ico"
## Download and extract v2ray
$Url_v2ray_x64 = "https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-windows-64.zip"
Expand Down Expand Up @@ -417,11 +417,9 @@ jobs:
- name: Check Version
id: prep
env:
REF: ${{ github.ref }}
shell: bash
REF: ${{ inputs.tag }}
run: |
echo "P_DIR=$(pwd)" >> $GITHUB_OUTPUT
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
tag=${{ inputs.tag }}
version=${tag:1}
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
Expand Down Expand Up @@ -822,14 +820,13 @@ jobs:
fetch-depth: 0
- name: Check Version
id: prep
env:
REF: ${{ inputs.tag }}
run: |
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
tag=${{ inputs.tag }}
version=${tag:1}
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
TAG=$(echo $GITHUB_REF | cut -d / -f 3)
IMAGE="mzz2017/v2raya-gui"
echo image=${IMAGE} >> $GITHUB_OUTPUT
- name: Download Web Files
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit faa7c94

Please sign in to comment.