From 31a6b74f3b5738051e85d47d7107ccd0f3495793 Mon Sep 17 00:00:00 2001 From: Adrien Carpentier Date: Mon, 2 Dec 2024 14:15:16 +0100 Subject: [PATCH] ci: fix CI --- .../.github => .github}/workflows/deploy.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) rename {frontend/.github => .github}/workflows/deploy.yml (72%) diff --git a/frontend/.github/workflows/deploy.yml b/.github/workflows/deploy.yml similarity index 72% rename from frontend/.github/workflows/deploy.yml rename to .github/workflows/deploy.yml index 8a9f65b..5de8516 100644 --- a/frontend/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,20 +16,27 @@ jobs: build: runs-on: ubuntu-latest steps: - - name: Checkout + + - name: Checkout repo uses: actions/checkout@v3 + - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '18' - - name: Install Dependencies + node-version: 'latest' + + - name: Install frontend dependencies + working-directory: ./frontend run: npm ci - - name: Build + + - name: Build frontend + working-directory: ./frontend run: npm run build + - name: Upload artifact uses: actions/upload-pages-artifact@v2 with: - path: ./dist + path: ./frontend/dist deploy: environment: @@ -40,4 +47,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2