manual | fixed index page. #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website | |
# documentation: | |
# https://docs.astro.build/en/guides/deploy/github/#using-github-pages-with-a-custom-domain | |
on: | |
push: | |
branches: | |
- main # or master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18' # specify Node.js version | |
- name: Install dependencies | |
run: | | |
npm install | |
npm run build # this assumes you have a build script in package.json | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./dist # Adjust this if your build output folder is different | |