fix(ci): use working-directory instead of cd for Cloudflare deploy
Gitea/GitHub Actions auto-groups a multi-line run: script under "Run <first line>". With `cd docs/site` as the first line, the collapsed log tree showed that instead of the actual wrangler deploy command. Moving the directory change to the step's working-directory key drops cd from the script entirely, so the group label now reflects the command that's actually running.
This commit is contained in:
@@ -106,11 +106,11 @@ jobs:
|
||||
npx astro build
|
||||
|
||||
- name: Deploy to Cloudflare Pages
|
||||
working-directory: docs/site
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||
run: |
|
||||
cd docs/site
|
||||
npx --yes wrangler pages deploy dist/ \
|
||||
--project-name=fish-config-docs \
|
||||
--branch=main \
|
||||
|
||||
Reference in New Issue
Block a user