Skip to content

Commit

Permalink
👷 add github deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tackyunicorn committed May 15, 2024
1 parent 0a9a5d1 commit 885a663
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: deploy

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt update
sudo apt install pandoc
- name: Make pages
run: make

- name: Upload pages
uses: actions/upload-pages-artifact@v3
with:
path: pages

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@v4

0 comments on commit 885a663

Please sign in to comment.