From baefb2551413d7a7b5d93a04714da40384c5103a Mon Sep 17 00:00:00 2001 From: Jefferson Gomes Date: Mon, 19 Aug 2024 15:01:15 -0300 Subject: [PATCH] - update deploy --- .github/workflows/deploy.yml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2e28bc3..234f0ab 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -68,26 +68,21 @@ jobs: working-directory: ./frontend run: npm run build - - name: Upload build artifacts - uses: actions/upload-artifact@v2 - with: - name: dist-files - path: ./frontend/dist + - name: List files + run: ls -la ./frontend/dist deploy-frontend: runs-on: ubuntu-latest needs: build-frontend - if: github.ref == 'refs/heads/develop' + if: github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main' steps: - - name: Download build artifacts - uses: actions/download-artifact@v2 - with: - name: dist-files + - name: Checkout repository + uses: actions/checkout@v2 - name: Deploy to GitHub Pages uses: JamesIves/github-pages-deploy-action@v4 with: - branch: develop - folder: dist + branch: gh-pages + folder: frontend/dist clean: true