Skip to content

Commit

Permalink
Front-End: Github Actions Test
Browse files Browse the repository at this point in the history
  • Loading branch information
king112ola committed Aug 18, 2024
1 parent f785b4e commit 306e75d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/quic_repo_frontend_build_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Repository Checkout
uses: actions/checkout@v4

- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
cache-dependency-path: './Front-End/package-lock.json'
# - name: Setup NodeJS
# uses: actions/setup-node@v4
# with:
# node-version: '20.x'
# cache: 'npm'
# cache-dependency-path: './Front-End/package-lock.json'

- name: Cache node modules
id: cache-npm
Expand All @@ -38,6 +38,11 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list

- name: Create env file
run: |
touch .env
Expand All @@ -52,7 +57,7 @@ jobs:
- name: Deploy to Netlify
id: netlify_deploy
run: |
npm exec netlify deploy \
npm exec netlify-cli deploy \
--dir dist \
--site ${{ secrets.NETLIFY_SITE_ID }} \
--auth ${{ secrets.NETLIFY_API_TOKEN }} \
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ Moralis-Server-Self-Host/.env
/Back-End/pdf/*
/Moralis-Server-Self-Host/build
*.wav

# Local Netlify folder
.netlify

0 comments on commit 306e75d

Please sign in to comment.