diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 511c18c..651b4bc 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -15,6 +15,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Set outputs + id: vars + run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT - name: Set up Node uses: actions/setup-node@v3 with: @@ -24,7 +27,7 @@ jobs: run: npm ci - name: Build env: - VITE_GIT_COMMIT_REF: "${GITHUB_SHA::7}" + VITE_GIT_COMMIT_REF: ${{ steps.vars.outputs.sha_short }} run: npm run gh-pages-build - name: Setup Pages uses: actions/configure-pages@v3