GithubPages #2
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: Github Pages | |
run-name: GithubPages | |
on: | |
push: | |
branches: ["main"] | |
concurrency: | |
group: "githubpages" | |
cancel-in-progress: true | |
jobs: | |
githubpages: | |
name: Github Pages | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
contents: write | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Install npm packages | |
run: npm ci --force | |
- name: Setup variables | |
run: npm run build | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: build |