ci: temporarily disable portable artifact upload to GitHub release and artifact

This commit is contained in:
Minh141120
2026-03-24 08:35:53 +07:00
parent 080f8fc7f7
commit 7c3802c3fa

View File

@@ -58,8 +58,8 @@ on:
value: ${{ jobs.build-windows-x64.outputs.FILE_NAME }}
MSI_FILE_NAME:
value: ${{ jobs.build-windows-x64.outputs.MSI_FILE_NAME }}
PORTABLE_FILE_NAME:
value: ${{ jobs.build-windows-x64.outputs.PORTABLE_FILE_NAME }}
# PORTABLE_FILE_NAME:
# value: ${{ jobs.build-windows-x64.outputs.PORTABLE_FILE_NAME }}
jobs:
build-windows-x64:
@@ -68,7 +68,7 @@ jobs:
WIN_SIG: ${{ steps.metadata.outputs.WIN_SIG }}
FILE_NAME: ${{ steps.metadata.outputs.FILE_NAME }}
MSI_FILE_NAME: ${{ steps.metadata.outputs.MSI_FILE_NAME }}
PORTABLE_FILE_NAME: ${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
# PORTABLE_FILE_NAME: ${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
permissions:
contents: write
steps:
@@ -258,12 +258,12 @@ jobs:
path: |
./src-tauri/target/release/bundle/msi/*.msi
- name: Upload Portable Artifact
uses: actions/upload-artifact@v4
with:
name: jan-windows-portable-${{ inputs.new_version }}
path: |
./src-tauri/target/release/Jan*.exe
# - name: Upload Portable Artifact
# uses: actions/upload-artifact@v4
# with:
# name: jan-windows-portable-${{ inputs.new_version }}
# path: |
# ./src-tauri/target/release/Jan*.exe
## Set output filename for windows
- name: Set output filename for windows
@@ -275,31 +275,19 @@ jobs:
WIN_SIG=$(cat Jan-${{ inputs.channel }}_${{ inputs.new_version }}_x64-setup.exe.sig)
MSI_FILE="Jan-${{ inputs.channel }}_${{ inputs.new_version }}_x64_en-US.msi"
PORTABLE_FILE_NAME="Jan-${{ inputs.channel }}_${{ inputs.new_version }}_x64-portable.exe"
# PORTABLE_FILE_NAME="Jan-${{ inputs.channel }}_${{ inputs.new_version }}_x64-portable.exe"
else
FILE_NAME=Jan_${{ inputs.new_version }}_x64-setup.exe
WIN_SIG=$(cat Jan_${{ inputs.new_version }}_x64-setup.exe.sig)
MSI_FILE="Jan_${{ inputs.new_version }}_x64_en-US.msi"
PORTABLE_FILE_NAME="Jan_${{ inputs.new_version }}_x64-portable.exe"
# PORTABLE_FILE_NAME="Jan_${{ inputs.new_version }}_x64-portable.exe"
fi
# go to ./src-tauri/target/release
cd ../..
# find the actual portable exe produced by the build
PORTABLE_SRC=$(ls -1 Jan*.exe | head -n 1)
if [ -z "$PORTABLE_SRC" ] || [ ! -f "$PORTABLE_SRC" ]; then
echo "Error: portable exe matching 'Jan*.exe' not found in $(pwd)" >&2
exit 1
fi
# copy to deterministic versioned filename
cp "$PORTABLE_SRC" "$PORTABLE_FILE_NAME"
echo "Portable exe: $PORTABLE_SRC -> $PORTABLE_FILE_NAME"
echo "::set-output name=WIN_SIG::$WIN_SIG"
echo "::set-output name=FILE_NAME::$FILE_NAME"
echo "::set-output name=MSI_FILE_NAME::$MSI_FILE"
echo "::set-output name=PORTABLE_FILE_NAME::$PORTABLE_FILE_NAME"
# echo "::set-output name=PORTABLE_FILE_NAME::$PORTABLE_FILE_NAME"
id: metadata
## Upload to s3 for nightly and beta
@@ -329,13 +317,13 @@ jobs:
asset_name: ${{ steps.metadata.outputs.FILE_NAME }}
asset_content_type: application/octet-stream
- name: Upload portable exe to release (github)
if: inputs.public_provider == 'github'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: actions/upload-release-asset@v1.0.1
with:
upload_url: ${{ inputs.upload_url }}
asset_path: ./src-tauri/target/release/${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
asset_name: ${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
asset_content_type: application/octet-stream
# - name: Upload portable exe to release (github)
# if: inputs.public_provider == 'github'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# uses: actions/upload-release-asset@v1.0.1
# with:
# upload_url: ${{ inputs.upload_url }}
# asset_path: ./src-tauri/target/release/${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
# asset_name: ${{ steps.metadata.outputs.PORTABLE_FILE_NAME }}
# asset_content_type: application/octet-stream