ci: LAST_COMMIT
All checks were successful
eleventy / build (push) Successful in 11m50s

This commit is contained in:
rizaldy 2024-02-15 00:10:55 +07:00
parent 29a5e58e62
commit ca3037d5d3

View File

@ -7,16 +7,14 @@ jobs:
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@master
- run: echo "git_hash=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" - run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
- name: Build - name: Build
uses: TartanLlama/actions-eleventy@master uses: TartanLlama/actions-eleventy@master
env:
LAST_COMMIT: ${{ vars.git_hash }}
with: with:
install_dependencies: true install_dependencies: true
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: '20.x' node-version: "20.x"
cache: "npm" cache: "npm"
- run: npx wrangler pages deploy dist --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME - run: npx wrangler pages deploy dist --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME
env: env: