From f451d68466d2bcf26a53df47e53ff320d1c97d0e Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 5 Dec 2024 18:02:27 -0500 Subject: [PATCH 1/3] Add email configuration --- .github/workflows/deploy.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 7f493b0..e8d5e9d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -21,6 +21,11 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup git + run: | + git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" + git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" + - name: Install dependencies run: npm ci From f3a05ea6f3fd39606eff49ca574812875c17e403 Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 5 Dec 2024 18:06:36 -0500 Subject: [PATCH 2/3] Use built-in actions --- .github/workflows/deploy.yml | 31 +++++++++++++++++++------------ 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e8d5e9d..8c7716b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,20 +15,27 @@ concurrency: cancel-in-progress: true jobs: - deploy: + build: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 + - name: Build static files + id: build + run: npm run build - - name: Setup git - run: | - git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)" - git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)" + - name: Upload static files as artifact + id: deployment + uses: actions/upload-pages-artifact@v3 + with: + path: build/ - - name: Install dependencies - run: npm ci + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 - - name: Deploy - run: | - npm run deploy From 96cc6ebe3d9ce60b9ea9832bf4419839e03a282b Mon Sep 17 00:00:00 2001 From: Henry Date: Thu, 5 Dec 2024 18:07:07 -0500 Subject: [PATCH 3/3] Add checkout --- .github/workflows/deploy.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8c7716b..b36f9e8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -18,6 +18,12 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Install dependencies + run: npm ci + - name: Build static files id: build run: npm run build