fix@ anzhiyu post title too long covered next element #50
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Hexo CI CD | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| submodules: recursive | |
| - name: "Using Special Node Version" | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "22.6.0" | |
| - name: Generate Hexo site ⚗️ | |
| run: | | |
| echo "Github Action Env Checking..." | |
| echo "Node Version: `node -v`" | |
| echo "Coping theme config file" | |
| # Install dependencies && update env | |
| echo "Install npm dependencies" | |
| npm i | |
| # Generate site | |
| npm run build | |
| - name: Deploy 🚀 | |
| uses: JamesIves/[email protected] | |
| with: | |
| token: ${{ secrets.HEXO_TOKEN }} | |
| branch: gh-pages # The branch the action should deploy to. | |
| folder: public/ # The folder the action should deploy. | |
| ssh-key: ${{ secrets.DEPLOY_KEY }} |