Merge pull request #2 from sammypanda/dev/github-actions #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: Deploy | |
on: | |
push: | |
branches: main | |
jobs: | |
deploy: | |
name: Deploy | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read # get the repository content | |
pages: write # write to GitHub pages | |
id-token: write # github token | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install Deno | |
uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.0 | |
- name: Generate site | |
run: "deno task build" | |
- name: Upload Artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: _site | |
- name: Configure GitHub Pages | |
id: configure | |
uses: actions/configure-pages@v3 | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 | |