mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-24 23:46:41 +02:00
Update workflow
This commit is contained in:
parent
e90a93c303
commit
c60d31ae0f
1 changed files with 19 additions and 2 deletions
21
.github/workflows/docs.yml
vendored
21
.github/workflows/docs.yml
vendored
|
@ -1,8 +1,8 @@
|
||||||
name: Docs
|
name: Docs
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
pull_request:
|
||||||
- master
|
types: [opened, synchronize]
|
||||||
jobs:
|
jobs:
|
||||||
docs:
|
docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -34,3 +34,20 @@ jobs:
|
||||||
publish_branch: gh-pages
|
publish_branch: gh-pages
|
||||||
publish_dir: ./site
|
publish_dir: ./site
|
||||||
force_orphan: true
|
force_orphan: true
|
||||||
|
- name: Deploy to Netlify
|
||||||
|
id: netlify
|
||||||
|
uses: nwtgck/actions-netlify@v1.1.13
|
||||||
|
with:
|
||||||
|
publish-dir: ./site
|
||||||
|
production-deploy: false
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
enable-commit-comment: false
|
||||||
|
env:
|
||||||
|
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
||||||
|
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
||||||
|
timeout-minutes: 5
|
||||||
|
- name: Documentation Preview
|
||||||
|
uses: ProjectPythia/actions/comment-netlify-preview-in-pr@main
|
||||||
|
with:
|
||||||
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
deploy-url: ${{ steps.netlify.outputs.deploy-url }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue