mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 03:05:25 +08:00
👷 update ci
This commit is contained in:
parent
eeec690e71
commit
7b2af1b2f3
12
.github/workflows/site_deploy.yml
vendored
12
.github/workflows/site_deploy.yml
vendored
@ -32,21 +32,11 @@ jobs:
|
|||||||
- name: Get Branch Name
|
- name: Get Branch Name
|
||||||
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Production Deploy
|
|
||||||
if: github.event_name == 'push' && env.BRANCH_NAME == 'master'
|
|
||||||
uses: nwtgck/actions-netlify@v1.1
|
|
||||||
with:
|
|
||||||
publish-dir: './docs/.vuepress/dist'
|
|
||||||
production-branch: ${{ env.BRANCH_NAME }}
|
|
||||||
production-deploy: true
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
deploy-message: 'Production Deploy ${{ env.BRANCH_NAME }}@${{ github.sha }}'
|
|
||||||
|
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
uses: nwtgck/actions-netlify@v1.1
|
uses: nwtgck/actions-netlify@v1.1
|
||||||
with:
|
with:
|
||||||
publish-dir: './docs/.vuepress/dist'
|
publish-dir: './docs/.vuepress/dist'
|
||||||
production-branch: ${{ env.BRANCH_NAME }}
|
production-branch: master
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
deploy-message: 'Deploy ${{ env.BRANCH_NAME }}@${{ github.sha }}'
|
deploy-message: 'Deploy ${{ env.BRANCH_NAME }}@${{ github.sha }}'
|
||||||
env:
|
env:
|
||||||
|
Loading…
Reference in New Issue
Block a user