Bump @babel/helpers from 7.24.7 to 7.28.4 #1473
Workflow file for this run
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: Deploy | |
| on: | |
| push: | |
| workflow_dispatch: | |
| jobs: | |
| build_vuepress: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20 | |
| - name: Build | |
| run: | | |
| yarn | |
| yarn run build | |
| mv docs/.vuepress/dist . | |
| tar -zcvf dist.tgz dist/ | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist.tgz | |
| path: dist.tgz | |
| retention-days: 1 | |
| copy_dist: | |
| needs: build_vuepress | |
| runs-on: self-hosted | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: dist.tgz | |
| path: artifacts | |
| - name: Copy dist | |
| run: | | |
| set -eu | |
| rm -rf $DEPLOY_DIR/dist | |
| tar -zxvf artifacts/dist.tgz -C $DEPLOY_DIR | |
| env: | |
| DEPLOY_DIR: /data/Notes/ | |
| test_website: | |
| needs: copy_dist | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Test | |
| run: | | |
| curl https://leohsiao.com --connect-timeout 10 | |
| curl https://meilisearch.leohsiao.com/health --connect-timeout 10 | |
| scrap_docs: | |
| needs: test_website | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Run docs-scraper | |
| env: | |
| API_KEY: ${{ secrets.MEILISEARCH_API_KEY }} | |
| run: | | |
| docker run -t --rm \ | |
| -e MEILISEARCH_HOST_URL=https://meilisearch.leohsiao.com \ | |
| -e MEILISEARCH_API_KEY=$API_KEY \ | |
| -v $PWD/etc/docs-scraper.json:/docs-scraper/config.json \ | |
| getmeili/docs-scraper:v0.12.1 pipenv run ./docs_scraper config.json |