Skip to content

Commit

Permalink
Update the CI
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanHCenalmor committed Oct 17, 2024
1 parent 3326956 commit 324f79d
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/deploy-page.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,29 @@ jobs:
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18' # Sets up Node.js version 14
node-version: '20' # Sets up Node.js version 20

- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
gatsby/node_modules/
gatsby/.cache/
public/
gatsby/public/
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }} # Creates a unique key for the cache based on the OS and the hash of package-lock.json file
restore-keys: |
${{ runner.os }}-npm-
- name: Install and Build
working-directory: ./gatsby
run: |
rm -f -R public
cd gatsby
npm install
./node_modules/.bin/gatsby build --prefix-paths
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./public

path: ./gatsby/public

# Deployment job
Deploy_webpage:
Expand All @@ -56,4 +54,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: actions/deploy-pages@v3

0 comments on commit 324f79d

Please sign in to comment.