Update main.yml
This commit is contained in:
parent
9eded8d312
commit
5a1472bdaf
35
.github/workflows/main.yml
vendored
35
.github/workflows/main.yml
vendored
@ -23,34 +23,33 @@ jobs:
|
|||||||
publish_docs:
|
publish_docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Checkout play dl
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Checkout play dl GitHub page repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
repository: play-dl/play-dl.github.io
|
||||||
|
path: docs
|
||||||
token: "${{ secrets.DOCS_TOKEN }}"
|
token: "${{ secrets.DOCS_TOKEN }}"
|
||||||
|
|
||||||
- uses: actions/setup-node@v2
|
- name: Setup Node 16
|
||||||
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 16
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install Dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Delete the docs directory
|
|
||||||
run: rm -rf ./docs
|
|
||||||
|
|
||||||
- name: Clone docs repository
|
- name: TypeDoc
|
||||||
uses: actions/checkout@v2
|
|
||||||
with:
|
|
||||||
repository: play-dl/play-dl.github.io
|
|
||||||
path: ./docs
|
|
||||||
token: "${{ secrets.DOCS_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Generate docs
|
|
||||||
run: npx typedoc
|
run: npx typedoc
|
||||||
|
|
||||||
- name: Publish docs
|
- name: Adding, committing and Pushing
|
||||||
run: |
|
run: |
|
||||||
echo $PWD
|
cd docs/
|
||||||
git add .
|
git config user.name 'github-actions[bot]'
|
||||||
git cm 'Automated docs update'
|
git config user.email 'github-actions[bot]@users.noreply.github.com'
|
||||||
|
git add *
|
||||||
|
git commit -m "Automated Docs"
|
||||||
git push
|
git push
|
||||||
working-directory: docs
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user