mirror of
https://github.com/lvgl/lvgl.git
synced 2026-06-03 22:13:33 +08:00
chore(docs) always deploy master to docs/master as well
This commit is contained in:
@@ -62,7 +62,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "::set-output name=VERSION_NAME::$(scripts/find_version.sh)"
|
echo "::set-output name=VERSION_NAME::$(scripts/find_version.sh)"
|
||||||
id: version
|
id: version
|
||||||
- name: Deploy
|
- name: Deploy to subfolder
|
||||||
uses: JamesIves/github-pages-deploy-action@3.7.1
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
||||||
with:
|
with:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@@ -73,3 +73,15 @@ jobs:
|
|||||||
TARGET_FOLDER: ${{ steps.version.outputs.VERSION_NAME }}
|
TARGET_FOLDER: ${{ steps.version.outputs.VERSION_NAME }}
|
||||||
PRESERVE: true
|
PRESERVE: true
|
||||||
SINGLE_COMMIT: 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
|
||||||
|
|||||||
Reference in New Issue
Block a user