Skip to content

Commit

Permalink
ci: beta build's number
Browse files Browse the repository at this point in the history
ci: fix get version from input tag

ci: fix linux packages' version
  • Loading branch information
Markson Hon authored and Markson Hon committed Jun 19, 2024
1 parent 0feab15 commit 0cdeb7a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/beta_release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ jobs:
env:
REF: ${{ inputs.tag }}
run: |
version=${{ inputs.tag }}
tag=${{ inputs.tag }}
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Set up Go
Expand Down Expand Up @@ -148,7 +149,8 @@ jobs:
env:
REF: ${{ inputs.tag }}
run: |
version=${{ inputs.tag }}
tag=${{ inputs.tag }}
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Set up Go
Expand Down Expand Up @@ -203,7 +205,8 @@ jobs:
env:
REF: ${{ inputs.tag }}
run: |
version=${{ inputs.tag }}
tag=${{ inputs.tag }}
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact Windows x64
Expand Down Expand Up @@ -310,8 +313,8 @@ jobs:
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_OUTPUT
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_ENV
echo "PACKAGE_VERSION=$version" >> $GITHUB_OUTPUT
echo "PACKAGE_VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact
uses: actions/download-artifact@v4
with:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ jobs:
env:
REF: ${{ inputs.tag }}
run: |
version=${{ inputs.tag }}
tag=${{ inputs.tag }}
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact Windows x64
Expand All @@ -233,7 +234,7 @@ jobs:
New-Item -ItemType Directory -Path "D:\v2raya-arm64-windows\bin"
## Copy v2rayA to Destination Directory
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 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 @@ -313,8 +314,8 @@ jobs:
version=$(echo $tag | sed 's/v//g')
echo "VERSION=$version" >> $GITHUB_OUTPUT
echo "VERSION=$version" >> $GITHUB_ENV
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_OUTPUT
echo "PACKAGE_VERSION=$package_version" >> $GITHUB_ENV
echo "PACKAGE_VERSION=$version" >> $GITHUB_OUTPUT
echo "PACKAGE_VERSION=$version" >> $GITHUB_ENV
- name: Download Artifact
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 0cdeb7a

Please sign in to comment.