add deploy site workflow (not working yet) #1
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 Static Site | |
on: | |
push: | |
branches: | |
- master # Run the action on pushes to the main branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Cargo | |
run: sudo apt-get install cargo | |
- name: Install djot-ssg | |
run: cargo install djot-ssg | |
- name: Generate static site | |
run: ./build-site.sh # Replace with your build command | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./public # Replace with your output directory |