Feature/Merge all presentations, add docs & improve CI/CD (#5) #43
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 # Continuously Deployment | |
on: | |
push: | |
branches: [ "main" ] | |
workflow_dispatch: {} | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
env: | |
SITE_BASE: presentations | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest # https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 # https://github.com/marketplace/actions/checkout | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build web content | |
run: task build | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 # https://github.com/actions/configure-pages | |
- name: Upload artifacts | |
uses: actions/upload-pages-artifact@v3 # https://github.com/actions/upload-pages-artifact | |
with: | |
path: dist | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 # https://github.com/actions/deploy-pages |