clean up (bis) #34
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: Build and Deploy | |
permissions: | |
contents: write | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get just | |
uses: extractions/setup-just@v1 | |
- name: Get pip | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" # caching pip dependencies | |
- name: Build project | |
env: | |
BASE_URL: "/RFCs" | |
run: | | |
just setup | |
rm .gitignore # for the RFC directory | |
just build | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' # to avoid deploying on PRs | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: . |