From 0c97961188ddfed22622bda10ee92bd9e527e9d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Randy=20D=C3=B6ring?= <30527984+radoering@users.noreply.github.com> Date: Fri, 1 May 2026 14:39:55 +0200 Subject: [PATCH] ci: replace deployment action with builtin deployment support --- .github/workflows/deploy-preview.yaml | 23 +++-------------------- .github/workflows/deploy-production.yaml | 23 +++-------------------- 2 files changed, 6 insertions(+), 40 deletions(-) diff --git a/.github/workflows/deploy-preview.yaml b/.github/workflows/deploy-preview.yaml index ef2e03a..b544a0e 100644 --- a/.github/workflows/deploy-preview.yaml +++ b/.github/workflows/deploy-preview.yaml @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/deploy-production.yaml b/.github/workflows/deploy-production.yaml index ad01565..69572ae 100644 --- a/.github/workflows/deploy-production.yaml +++ b/.github/workflows/deploy-production.yaml @@ -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 }} permissions: - deployments: write pull-requests: write steps: @@ -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 @@ -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 }}