Skip to content

Commit

Permalink
Create workflow with publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
moranegg authored May 19, 2024
1 parent 0acab8a commit 9aca2df
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
on:
push:
branches: [main]

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
name: Build current
runs-on: ubuntu-latest
container: python:3
steps:
- uses: actions/checkout@v2
with:
ref: 'main'
- name: Install pre-requisites
run: pip install -r requirements.txt
- name: Build
run: mkdocs build -v --clean
- name: Upload
uses: actions/upload-pages-artifact@v1
with:
path: ./site
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

0 comments on commit 9aca2df

Please sign in to comment.