mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-08 04:43:00 +08:00
👷 调整ci
This commit is contained in:
parent
e62317bc6c
commit
db60666ca6
1
.github/workflows/release-drafter.yml
vendored
1
.github/workflows/release-drafter.yml
vendored
@ -1,6 +1,7 @@
|
|||||||
name: Release Drafter
|
name: Release Drafter
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
40
.github/workflows/website-preview.yml
vendored
40
.github/workflows/website-preview.yml
vendored
@ -1,40 +0,0 @@
|
|||||||
name: Site Deploy(Preview)
|
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request_target:
|
|
||||||
paths:
|
|
||||||
- docs/**
|
|
||||||
- package.json
|
|
||||||
- yarn.lock
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
preview:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
concurrency:
|
|
||||||
group: pull-request-preview-${{ github.event.number }}
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
with:
|
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
|
||||||
|
|
||||||
- name: Build Docs
|
|
||||||
uses: ./.github/actions/build-docs
|
|
||||||
|
|
||||||
- name: Get Deploy Name
|
|
||||||
run: |
|
|
||||||
echo "DEPLOY_NAME=deploy-preview-${{ github.event.number }}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Deploy to Netlify
|
|
||||||
uses: nwtgck/actions-netlify@v1
|
|
||||||
with:
|
|
||||||
publish-dir: "./docs/.vuepress/dist"
|
|
||||||
production-deploy: false
|
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
deploy-message: "Deploy ${{ env.DEPLOY_NAME }}@${{ github.sha }}"
|
|
||||||
enable-commit-comment: false
|
|
||||||
alias: ${{ env.DEPLOY_NAME }}
|
|
||||||
env:
|
|
||||||
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
|
|
||||||
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
|
|
Loading…
x
Reference in New Issue
Block a user