Skip to content

Commit

Permalink
fix deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeAspy committed Aug 11, 2024
1 parent 399f06f commit 0c73263
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml

This file was deleted.

42 changes: 42 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Deploy
on:
push:
branches:
- pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Prepare Python
uses: actions/setup-python@v5
with:
python-version: 3.x
cache: pip

- name: Install dependencies
run: pip install -r requirements.txt

- name: Build docs
run: mkdocs build

- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
path: site

deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{steps.deploy.outputs.page_url}}
runs-on: ubuntu-latest
steps:
- name: Deploy page
id: deploy
uses: actions/deploy-pages@v4

0 comments on commit 0c73263

Please sign in to comment.