mirror of
https://github.com/privacyguides/privacyguides.org.git
synced 2024-12-20 13:24:35 -05:00
757729d145
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 3 to 4. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
45 lines
1.1 KiB
YAML
45 lines
1.1 KiB
YAML
name: 🔂 Surge PR Preview
|
|
|
|
on:
|
|
pull_request_target:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
# Ensures that only one mirror task will run at a time.
|
|
concurrency:
|
|
group: surge-sh
|
|
|
|
jobs:
|
|
preview:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
issues: write
|
|
pull-requests: write
|
|
contents: write
|
|
environment: preview
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: '0'
|
|
ref: ${{github.event.pull_request.head.ref}}
|
|
repository: ${{github.event.pull_request.head.repo.full_name}}
|
|
ssh-key: ${{ secrets.ACTIONS_SSH_KEY }}
|
|
submodules: 'true'
|
|
|
|
- name: Set up Python runtime
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.7'
|
|
|
|
- name: Deploy to surge.sh
|
|
uses: afc163/surge-preview@v1
|
|
with:
|
|
surge_token: ${{ secrets.SURGE_TOKEN }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
dist: site
|
|
failOnError: 'true'
|
|
build: |
|
|
pip install pipenv
|
|
pipenv install
|
|
pipenv run mkdocs build
|