Integrate Fathom Analytics #24
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 to Pages | |
on: | |
push: | |
branches: ["main"] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- run: mkdir -p output | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Build | |
uses: actions/jekyll-build-pages@v1 | |
with: | |
destination: "./output/en" | |
- name: Copy static assets | |
run: | | |
cp -r index.html output/ | |
cp -r .well-known output/ | |
cp -r es output/ | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: output | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |