summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNavan Chauhan <navanchauhan@gmail.com>2024-07-01 22:13:41 -0600
committerGitHub <noreply@github.com>2024-07-01 22:13:41 -0600
commit54e8f83dcb9457eb0ab3352d2119248b55fa89c9 (patch)
tree847641919e129e6bad54f052ffb2973fdd4b8b19
parentc71d8fab4f22a4f18220ed34135709909dbe5d39 (diff)
Create static.yml
-rw-r--r--.github/workflows/static.yml48
1 files changed, 48 insertions, 0 deletions
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