Skip to content

Commit

Permalink
update GitHub Actions workflow to build project, set up directories, …
Browse files Browse the repository at this point in the history
…and create redirect for deployment
  • Loading branch information
berkaytumal committed Jan 17, 2025
1 parent 85d8878 commit 20ce466
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 '<!DOCTYPE html><html><head><meta http-equiv="refresh" content="0; url=https://groovelauncher.github.io/www"><title>Redirecting...</title></head><body><p>If you are not redirected automatically, follow this <a href="https://groovelauncher.github.io/www">link</a>.</p></body></html>' > ./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
publish_dir: ./pagespublic
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -144,4 +144,6 @@ build-internal-apps.sh

finalize.js
.dist
version.json
version.json

pagespublic

0 comments on commit 20ce466

Please sign in to comment.