Skip to content

Commit

Permalink
chore(docs) always deploy master to docs/master as well
Browse files Browse the repository at this point in the history
embeddedt authored Jun 7, 2021
1 parent 34b8584 commit 6d05692
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/compile_docs.yml
Original file line number Diff line number Diff line change
@@ -62,7 +62,7 @@ jobs:
run: |
echo "::set-output name=VERSION_NAME::$(scripts/find_version.sh)"
id: version
- name: Deploy
- name: Deploy to subfolder
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -73,3 +73,15 @@ jobs:
TARGET_FOLDER: ${{ steps.version.outputs.VERSION_NAME }}
PRESERVE: true
SINGLE_COMMIT: true
- name: Deploy to master
if: github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ACCESS_TOKEN: ${{ secrets.LVGL_BOT_TOKEN }}
REPOSITORY_NAME: lvgl/docs
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: out_html # The folder the action should deploy.
TARGET_FOLDER: master
PRESERVE: true
SINGLE_COMMIT: true

0 comments on commit 6d05692

Please sign in to comment.