Skip to content

Commit

Permalink
#
Browse files Browse the repository at this point in the history
  • Loading branch information
czy21 committed May 16, 2024
1 parent 7152470 commit c352eaf
Showing 1 changed file with 24 additions and 32 deletions.
56 changes: 24 additions & 32 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@
name: Deploy Doc to Pages

on:
# Runs on pushes targeting the default branch
push:
paths:
- doc/**
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -31,34 +26,31 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.10'
cache: 'pip'
- run: pip install mkdocs mkdocs-material
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
- name: Build with Mkdocs
run: mkdocs build -d build/doc
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./build/doc
- run: pip install -r server/requirements.txt
- run: ssh localhost
# - name: Setup Pages
# id: pages
# uses: actions/configure-pages@v3
# - name: Build with Mkdocs
# run: mkdocs build -d build/doc
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: ./build/doc

# Deployment job
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@v2
# # Deployment job
# 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@v2

0 comments on commit c352eaf

Please sign in to comment.