Skip to content

docs: add version selection to header #16

docs: add version selection to header

docs: add version selection to header #16

Workflow file for this run

name: Deploy Preview
on:
pull_request:
types: [opened, synchronize, reopened, labeled]
jobs:
netlify:
runs-on: ubuntu-latest
steps:
- name: Build
uses: netlify/actions/cli@master
with:
args: build
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Publish
id: publish
uses: netlify/actions/cli@master
with:
args: deploy
env:
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
- name: Debug output
shell: bash
run: |
echo ${{ steps.publish.outputs.NETLIFY_URL }}
# - name: Deploy Preview for PR
# if: contains(github.event.pull_request.labels.*.name, 'Deploy Preview')
# uses: actions-cool/issues-helper@v3
# with:
# issue-number: ${{ github.event.pull_request.number }}
# actions: 'create-comment'
# token: ${{ secrets.GITHUB_TOKEN }}
# body: |
# 📡 PR Preview Deployment