提交一些在阅读过程中发现的错别字、粗体标识位置、个别字的位置、货币单位(印度使用卢比,土耳其使用里拉)的纠正建议。 #57
This file contains 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 1000h website | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "1000-hours/**" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "1000-hours/**" | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
# checkout the code | |
- uses: actions/checkout@v4 | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
1000-hours/node_modules | |
1000-hours/**/node_modules | |
key: ${{ runner.os }}-${{ hashFiles('./1000-hours/package-lock.json') }} | |
- name: Setup node env | |
uses: actions/setup-node@master | |
with: | |
node-version: "20" | |
- run: npm install | |
working-directory: 1000-hours | |
- run: npm run docs:build | |
working-directory: 1000-hours | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy .vitepress/dist --project-name=1000-hours-prod | |
workingDirectory: "1000-hours" |