Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 3 additions & 20 deletions .github/workflows/deploy-preview.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ jobs:
if: |
(github.event_name == 'pull_request_target' && contains(github.event.pull_request.labels.*.name, 'safe'))
|| (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)
environment:
name: Preview
url: ${{ steps.vercel-action.outputs.preview-url }}
permissions:
deployments: write
pull-requests: write
steps:
- name: Checkout
Expand Down Expand Up @@ -55,14 +57,6 @@ jobs:
poetry install --no-root --only main
poetry run python bin/website build

- name: Start Deployment
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Preview

- name: Build
run: npx hugo --buildDrafts --buildFuture --logLevel info

Expand All @@ -78,14 +72,3 @@ jobs:
scope: python-poetry
github-comment: true
working-directory: public

- name: Update Deployment Status
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ steps.vercel-action.outputs.preview-url }}
env: ${{ steps.deployment.outputs.env }}
23 changes: 3 additions & 20 deletions .github/workflows/deploy-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,10 @@ jobs:
name: Build & Deploy
runs-on: ubuntu-latest
timeout-minutes: 15
environment:
name: Production
url: ${{ steps.vercel-action.outputs.preview-url }}
Comment on lines +18 to +20
permissions:
deployments: write
pull-requests: write

steps:
Expand Down Expand Up @@ -53,14 +55,6 @@ jobs:
poetry install --no-root --only main
poetry run python bin/website build

- name: Start Deployment
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: Production

- name: Build
run: npx hugo --minify --logLevel info

Expand Down Expand Up @@ -88,14 +82,3 @@ jobs:
github-comment: false
vercel-args: "--prod"
working-directory: public

- name: Update Deployment Status
uses: bobheadxi/deployments@648679e8e4915b27893bd7dbc35cb504dc915bc8 # v1.5.0
if: always()
with:
step: finish
token: ${{ secrets.GITHUB_TOKEN }}
status: ${{ job.status }}
deployment_id: ${{ steps.deployment.outputs.deployment_id }}
env_url: ${{ steps.vercel-action.outputs.preview-url }}
env: ${{ steps.deployment.outputs.env }}