diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 4981ffc..6ff12c5 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,7 +8,6 @@ env: COMMIT_ID: "${{ github.sha }}" PR_PROMPT: "::warning:: Build artifact will not be uploaded due to the workflow is trigged by pull request." LD_FLAGS: "-w -s" - VERSION: "action" HTTP_PROXY: "http://172.17.0.1:7890" HTTPS_PROXY: "http://172.17.0.1:7890" GOPROXY: "https://goproxy.cn,direct" @@ -21,6 +20,10 @@ jobs: image: node:16-bullseye # 持久化工具目录 steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 - name: setup go uses: https://github.com/actions/setup-go@v4 with: @@ -34,10 +37,11 @@ jobs: args: build --snapshot env: GITEA_TOKEN: ${{ secrets.TOKEN }} -# - name: upload-artifact -# uses: actions/upload-artifact@v3 -# with: -# name: my-artifact -# path: dist/*/* + # - name: upload-artifact + # uses: actions/upload-artifact@v3 + # with: + # name: my-artifact + # path: dist/*/* +