From 54e8f83dcb9457eb0ab3352d2119248b55fa89c9 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 1 Jul 2024 22:13:41 -0600 Subject: Create static.yml --- .github/workflows/static.yml | 48 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/static.yml diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..e1495d3 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,48 @@ +name: Build and Deploy to Pages + +on: + push: + branches: ["vanilla-ssg"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + # Single deploy job since we're just deploying + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Setup Pages + uses: actions/configure-pages@v5 + - name: Setup Python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + - name: Setup poetry + uses: abatilo/actions-poetry@v3 + with: + poetry-version: "1.8" + - name: Istall Dependencies and Build + run: | + poetry install + poetry run python generate_me.py + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: 'docs/' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 -- cgit v1.2.3