Skip to content

Commit

Permalink
chore: Merge release and docs actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Rapsssito committed Jul 3, 2024
1 parent b6aa974 commit 3d878c9
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/docs.yml

This file was deleted.

19 changes: 18 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Semantic Release

on: workflow_dispatch
on:
push:
branches:
- main

jobs:
release:
Expand Down Expand Up @@ -37,3 +40,17 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.tag }}

- id: deployment_docs
uses: sphinx-notes/pages@v3
with:
publish: false
documentation_path: './docs/source'
requirements_path: './requeriments_docs.txt'
if: steps.release.outputs.released == 'true'

- uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment_docs.outputs.artifact }}
if: steps.release.outputs.released == 'true'

0 comments on commit 3d878c9

Please sign in to comment.