From ff8481773264214ddf5cd3e4267e814738c1f0c1 Mon Sep 17 00:00:00 2001 From: "Waylon S. Walker" Date: Sun, 1 Jan 2023 14:07:20 -0600 Subject: [PATCH] setup site --- .github/workflows/release.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a9360c..4bc86dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,3 +23,34 @@ jobs: with: name: creeper-${{ matrix.os }} path: dist + build-site: + needs: release + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./site + steps: + - uses: actions/checkout@v2 + - uses: actions/download-artifact@v3 + with: + name: creeper-windows-latest + path: static + - uses: actions/download-artifact@v3 + with: + name: creeper-ubuntu-latest + path: static + - uses: actions/setup-python@v4 + with: + python-version: '3.10' + - name: install hatch + run: pip install hatch + - name: build with markata + run: hatch run build + - name: GitHub Pages + uses: crazy-max/ghaction-github-pages@v3.0.0 + with: + # you can choose the target branch of your choice + target_branch: prod-markata + build_dir: markout + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}