fix: add checkout and build steps to Cloudflare Pages deploy workflow
This commit is contained in:
1 parent
24273b5513
commit
87e9eff1bd
1 file changed
+14
@@ -9,6 +9,20 @@ jobs:
|
|||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: 20
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: cd frontend && npm ci
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: cd frontend && npm run build
|
||||||
|
|
||||||
- name: Create deployment artifact
|
- name: Create deployment artifact
|
||||||
run: tar -czf site.tgz -C frontend/dist .
|
run: tar -czf site.tgz -C frontend/dist .
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user