Skip to content

Commit

Permalink
ci: add gh-pages-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
long2ice committed May 23, 2022
1 parent b52e47d commit 0d1d848
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 12 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/gh-pages-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: gh-pages-release
on:
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install and configure Poetry
run: |
pip install -U pip poetry
poetry config virtualenvs.create false
- name: Build docs
run: make docs
- name: Deploy release docs
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: build/html
external_repository: tortoise/tortoise.github.io
publish_branch: master
destination_dir: ${{ github.ref_name }}
12 changes: 0 additions & 12 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ on:
push:
branches:
- develop
release:
types:
- created
jobs:
publish:
runs-on: ubuntu-latest
Expand All @@ -27,12 +24,3 @@ jobs:
publish_dir: build/html
external_repository: tortoise/tortoise.github.io
publish_branch: master
- name: Deploy release docs
if: ${{ github.event_name }} == "release" && ${{ github.event.action }} == "created"
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{ secrets.PERSONAL_TOKEN }}
publish_dir: build/html
external_repository: tortoise/tortoise.github.io
publish_branch: master
destination_dir: ${{ github.ref_name }}

0 comments on commit 0d1d848

Please sign in to comment.