diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a66e002e..ab6db9a9 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,11 +26,24 @@ jobs: steps: - name: Checkout your repository using git uses: actions/checkout@v2 - - run: echo $PUBLIC_MAPBOX_TOKEN - - name: Install, build, and upload your site - uses: withastro/action@v0 + - name: Setup Node + uses: actions/setup-node@v3 with: node-version: 20 + - name: Install Node dependencies + run: npm ci + - name: Build site + run: npm run build + - name: Move images News + run: mv public/images/news/dynamic/* dist/images/news/dynamic/ + - name: Move images Interventions + run: mv public/images/interventions/dynamic/* dist/images/interventions/dynamic/ + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: github-pages + retention-days: 5 + path: ./dist deploy: needs: build diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index c4182369..99698232 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -35,12 +35,10 @@ jobs: run: npm ci - name: Build site run: npm run build - - name: List images - run: ls public/images/news/dynamic - - name: Move images + - name: Move images News run: mv public/images/news/dynamic/* dist/images/news/dynamic/ - - name: List images in dist - run: ls dist/images/news/dynamic + - name: Move images Interventions + run: mv public/images/interventions/dynamic/* dist/images/interventions/dynamic/ - name: Upload artifact uses: actions/upload-artifact@v3 with: