Skip to content

Commit a806115

Browse files
committed
temp: only build search index
1 parent b51cb0c commit a806115

File tree

1 file changed

+10
-32
lines changed

1 file changed

+10
-32
lines changed

.github/workflows/deploy-preview.yaml

Lines changed: 10 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
with:
4141
node-version: "18"
4242

43+
- name: Setup Ruby
44+
uses: ruby/setup-ruby@v1
45+
with:
46+
ruby-version: 2.6
47+
bundler-cache: true
48+
4349
- name: Build Assets
4450
run: npm ci && npm run prod
4551

@@ -49,37 +55,9 @@ jobs:
4955
poetry install --no-root --only main
5056
poetry run python bin/website build
5157
52-
- name: Start Deployment
53-
uses: bobheadxi/deployments@v1
54-
id: deployment
55-
with:
56-
step: start
57-
token: ${{ secrets.GITHUB_TOKEN }}
58-
env: Preview
59-
6058
- name: Build
61-
run: npx hugo --buildDrafts --buildFuture --logLevel info
59+
run: npx hugo --minify --logLevel info
6260

63-
- name: Deploy
64-
uses: amondnet/vercel-action@v25
65-
id: vercel-action
66-
with:
67-
vercel-version: 39.1.3
68-
vercel-token: ${{ secrets.VERCEL_TOKEN }}
69-
github-token: ${{ secrets.GITHUB_TOKEN }}
70-
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
71-
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
72-
scope: python-poetry
73-
github-comment: true
74-
working-directory: public
75-
76-
- name: Update Deployment Status
77-
uses: bobheadxi/deployments@v1
78-
if: always()
79-
with:
80-
step: finish
81-
token: ${{ secrets.GITHUB_TOKEN }}
82-
status: ${{ job.status }}
83-
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
84-
env_url: ${{ steps.vercel-action.outputs.preview-url }}
85-
env: ${{ steps.deployment.outputs.env }}
61+
- name: Build search index
62+
run: |
63+
bundle exec bin/build_index.rb

0 commit comments

Comments
 (0)