上传时指定附件名

This commit is contained in:
2025-11-21 13:55:42 +08:00
parent 2c982a8ac5
commit 69da42ed00

View File

@@ -5,16 +5,27 @@ jobs:
build-launcher: build-launcher:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
steps: steps:
- name: checkout - id: checkout
name: checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: build launcher - id: build
name: build launcher
run: | run: |
chmod a+x ./bin/* chmod a+x ./bin/*
chmod a+x build-launcher.sh chmod a+x build-launcher.sh
./build-launcher.sh -l -c ./build-launcher.sh -l -c
- name: upload - id: get-filename
name: get zip filename
run: |
ZIP_FILE=$(ls build-output/*.zip)
echo "zip_file=$ZIP_FILE" >> $GITHUB_OUTPUT
echo "artifact_name=$(basename $ZIP_FILE)" >> $GITHUB_OUTPUT
- id: upload
name: upload
uses: https://github.com/christopherHX/gitea-upload-artifact@v4 uses: https://github.com/christopherHX/gitea-upload-artifact@v4
with: with:
path: build-output/*.zip name: ${{ steps.get-filename.outputs.artifact_name }}
path: ${{ steps.get-filename.outputs.zip_file }}