Skip to content

Commit

Permalink
Updating the frontend action
Browse files Browse the repository at this point in the history
  • Loading branch information
IFenton committed Aug 1, 2024
1 parent 296ee5f commit 3ca12ee
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Install node
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '16.15.1'
node-version: 20
cache: "npm"
cache-dependency-path: "./frontend/package-lock.json"

- name: Setup python
uses: actions/setup-python@v4
Expand All @@ -28,12 +30,7 @@ jobs:

- name: Build
working-directory: frontend
env:
CI: ""
run: |
npm run build
pwd
ls
run: npm run build && cp ./dist/index.html ./dist/404.html && cp ./CNAME ./dist/CNAME

- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4.2.2
Expand Down

0 comments on commit 3ca12ee

Please sign in to comment.