fix formatting & improve gitignore file #18
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: Publish Pages | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
# Allow one concurrent deployment | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # to read the repository itself | |
pages: write # to configure to Pages | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Set up NodeJs | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.node-version' | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v4 | |
- name: Install Dependencies | |
run: npm ci | |
- name: Generate Site | |
run: npx antora antora-playbook.yml | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: build/site | |
deploy: | |
runs-on: ubuntu-latest | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate sourc | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v3 |