From 8a24d0fa8223a045b1065a672134d228b0e51028 Mon Sep 17 00:00:00 2001 From: Jakob Kogler Date: Sun, 5 Jun 2022 20:19:30 +0200 Subject: [PATCH] add preview deployements for PRs --- .github/workflows/deploy-prod.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index c5610d74a..ce2a91cf6 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -4,7 +4,7 @@ on: push: branches: - master - - mkdocs + pull_request_target: jobs: deploy_live_website: @@ -23,8 +23,11 @@ jobs: run: | mkdocs build --strict - uses: FirebaseExtended/action-hosting-deploy@v0 + env: + PREVIEW_NAME: "preview-${{ github.event.pull_request.number }}" + LIVE_NAME: "live" with: repoToken: "${{ secrets.GITHUB_TOKEN }}" firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT }}" projectId: cp-algorithms - channelId: ${{ github.ref == 'refs/heads/master' && 'live' || 'mkdocs' }} + channelId: ${{ github.event_name == 'pull' && github.ref == 'refs/heads/master' && env.LIVE_NAME || env.PREVIEW_NAME }} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy