This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
Merge branch 'main' into add-ssl-config #65
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Vercel Deploy Preview | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request_target: | |
branches: | |
- main | |
jobs: | |
# Require authorization/approval before running on external forks/pull requests. | |
authorize: | |
name: 'Authorization Check' | |
environment: ${{ github.event_name == 'pull_request_target' && github.event.pull_request.head.repo.id != github.repository_id && 'external' || 'internal' }} | |
runs-on: ubuntu-latest | |
steps: | |
- run: true | |
build-deploy-preview: | |
name: 'Build and Deploy Preview' | |
if: ${{ (github.event_name == 'pull_request_target' && github.event.pull_request.base.repo.id != github.event.pull_request.head.repo.id) || github.event_name == 'push' }} | |
needs: authorize | |
permissions: | |
contents: read | |
uses: FOSSBilling/.workflows/.github/workflows/vercel-build-deploy.yml@main | |
secrets: | |
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | |
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID }} | |
vercel_token: ${{ secrets.VERCEL_TOKEN }} | |
with: | |
checkout_ref: ${{ github.event.pull_request.head.sha || github.ref }} | |
environment: Preview |