diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3d16c05..653b832 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -9,6 +9,16 @@ jobs: build-and-release: runs-on: ubuntu-latest steps: + - name: Checkout + env: + GITEA_TOKEN: ${{ secrets.TOKEN }} + run: | + REPO="${{ gitea.repository }}" + TAG="${{ gitea.ref_name }}" + git clone --depth 1 --branch "${TAG}" \ + "https://zhilv:${GITEA_TOKEN}@gitea.kmux.cn/${REPO}.git" . + git log --oneline -1 + - name: Setup Node.js run: | apt-get update -qq