Skip to content

Commit

Permalink
Disable old docs workflow (#727)
Browse files Browse the repository at this point in the history
  • Loading branch information
droserasprout authored Jun 28, 2023
1 parent 1664def commit 0c1d8da
Showing 1 changed file with 1 addition and 17 deletions.
18 changes: 1 addition & 17 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@ concurrency:
cancel-in-progress: true
on:
push:
tags:
- '*.*.*'
branches:
- '**'
- master'
paths:
- 'docs/**'
- 'scripts/**'
Expand Down Expand Up @@ -41,25 +39,11 @@ jobs:
run: make install

- name: Build docs (docs)
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, 'rc')
run: MDBOOK_ROOT=https://docs.dipdup.io make docs

- name: Deploy to GH Pages (docs)
if: startsWith(github.ref, 'refs/tags') && !contains(github.ref, 'rc')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist/docs
destination_dir: docs

- name: Build docs (docs-next)
if: startsWith(github.ref, 'refs/heads')
run: MDBOOK_ROOT=https://docs-next.dipdup.io make docs

- name: Deploy to GH Pages (docs-next)
if: startsWith(github.ref, 'refs/heads/master')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/dist/docs
destination_dir: docs-next

0 comments on commit 0c1d8da

Please sign in to comment.