Skip to content

Commit

Permalink
update deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
soungryoul.kim committed Apr 10, 2024
1 parent d5815cc commit b7d55f4
Showing 1 changed file with 19 additions and 38 deletions.
57 changes: 19 additions & 38 deletions .github/workflows/deploy_docs.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,24 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: "Sphinx: Render docs"

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# 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
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
on: push

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
# - uses: actions/upload-artifact@v1
# with:
# name: DocumentationHTML
# path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
- uses: actions/checkout@v4
- name: Build HTML
uses: ammaraskar/sphinx-action@master
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: docs/build/html/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html

0 comments on commit b7d55f4

Please sign in to comment.