feat: get artifacts

This commit is contained in:
initialencounter 2024-04-13 11:34:49 +08:00
parent 27825326bc
commit aa146254b2
2 changed files with 5 additions and 1 deletions

View File

@ -47,6 +47,10 @@ jobs:
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Get artifacts
run: |
sh -c get_artifacts.sh ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push by digest
id: build

View File

@ -5,7 +5,7 @@ repository="NapNeko/NapCat.Build"
run_id="8662095740"
arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/x64/)
artifact_name="NapCat.linux.{$arch}"
token=""
token="$1"
# 设置输出目录
output_dir="."