Skip to content

Commit

Permalink
chore(ci): trying to push built docs to site repo
Browse files Browse the repository at this point in the history
  • Loading branch information
gdereese committed Sep 19, 2021
1 parent c461241 commit d3f9cd9
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ jobs:
steps:
- uses: actions/checkout@v2

- name: Checkout docs site repo
uses: actions/checkout@v2
with:
repository: gdereese/gdereese.github.io
path: docs

- name: Setup Python
uses: actions/setup-python@v2.2.2

Expand All @@ -34,5 +40,9 @@ jobs:
- name: Build HTML docs
run: |
poetry run pdoc --template-dir docs_template --html -o docs tonescript
mv docs/tonescript/* docs
rmdir docs/tonescript
- name: Push HTML docs to site repo
cwd: docs
run: |
git add --all
git push
22 changes: 22 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Publish

on:

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Build package
run: |
poetry build
- name: Publish package
run: |
poetry publish
- name: Build HTML docs
run: |
poetry run pdoc --template-dir docs_template --html -o docs tonescript

0 comments on commit d3f9cd9

Please sign in to comment.