Skip to content

Commit

Permalink
Add github pages CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Alainx277 committed Dec 16, 2023
1 parent c907ee2 commit 77fd670
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Build and deploy site
on:
push:
branches:
- main
paths-ignore:
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
- '.gitignore'
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: taiki-e/install-action@v2
with:
tool: [email protected]
- name: Build site
run: zola build
- name: Fix permissions
run: |
chmod -c -R +rX "public/"
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v2
with:
path: "public/"
deploy:
needs: build

permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3

0 comments on commit 77fd670

Please sign in to comment.