diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ba3ebe6..fd2fcb3 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -24,13 +24,21 @@ jobs: - name: Install dependencies run: npm install - # Build the project - - name: Build the project - run: npm run build:production + # Set up directories and copy files + - name: Build the project, setup directories and copy files + run: | + mkdir -p pagespublic/www + npm run build:production + cp -r www/* pagespublic/www + + # Create redirect index.html + - name: Create redirect index.html + run: | + echo 'Redirecting...

If you are not redirected automatically, follow this link.

' > ./pagespublic/index.html # Deploy to GitHub Pages - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3 with: personal_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} - publish_dir: ./www \ No newline at end of file + publish_dir: ./pagespublic \ No newline at end of file diff --git a/.gitignore b/.gitignore index 2e049f0..a41fcc3 100644 --- a/.gitignore +++ b/.gitignore @@ -144,4 +144,6 @@ build-internal-apps.sh finalize.js .dist -version.json \ No newline at end of file +version.json + +pagespublic