Bug: Selecting code examples does not work when navigating to permalink - Issue #169 #120
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 | |
env: | |
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} | |
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} | |
on: | |
pull_request_target: | |
types: [labeled, synchronize] | |
jobs: | |
preview: | |
runs-on: ubuntu-latest | |
environment: | |
name: preview | |
url: ${{ steps.deploy.outputs.url }} | |
if: contains(github.event.pull_request.labels.*.name, 'safe to preview') | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
- run: npm install --global vercel@latest | |
- run: vercel pull --yes --environment=preview --token=${{ secrets.VERCEL_TOKEN }} | |
- run: vercel build --token=${{ secrets.VERCEL_TOKEN }} | |
- id: deploy | |
run: echo "::set-output name=url::$(vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }})" |