Skip to content

Commit

Permalink
update docs action
Browse files Browse the repository at this point in the history
  • Loading branch information
ricky0123 committed Oct 30, 2024
1 parent e73d47c commit 8419129
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,12 @@ concurrency:

jobs:
build:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5


- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- uses: actions/setup-python@v5
with:
python-version: "3.10"
Expand All @@ -41,15 +34,9 @@ jobs:
run: poetry install
- name: Build site
run: poetry run mkdocs build -d _site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- uses: actions/checkout@v4
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && jekyll build --future"
# Deployment job
deploy:
environment:
name: github-pages
Expand Down

0 comments on commit 8419129

Please sign in to comment.