diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index e3bad66..36532de 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -16,9 +16,11 @@ jobs: run: | npm install cd server && npm run build + # Find the dist directory and set it as an output variable + find . -type d -name "dist" -exec echo "::set-output name=dist_folder::{}" \; - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GH_PAGES_TOKEN }} - publish_dir: /client/dist # Change this to your build output directory + publish_dir: ${{ steps.deploy.outputs.dist_folder }} # Use the dist folder found in the previous step