Skip to content

add redirect and update workflow #70

add redirect and update workflow

add redirect and update workflow #70

Workflow file for this run

name: Docs
on:
push:
branches: [netlify-legacy-for-redirect]
paths:
- "**"
- ".github/workflows/docs.yml"
workflow_dispatch: # Add this line to enable manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: "poetry"
cache-dependency-path: poetry.lock
- name: Install deps
run: make install
- name: Build
run: make build
# We deploy from GitHub Actions instead of via Netlify builders,
# because Netlify builders don't support Python 3.8+
- name: Deploy to Netlify
if: github.ref == 'refs/heads/netlify-legacy-for-redirect'
uses: jsmrcaga/[email protected]
with:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
NETLIFY_SITE_ID: ddab54c7-7320-45c9-9103-8509b232bfae
NETLIFY_DEPLOY_MESSAGE: "Deployed from GitHub Action: ${{ github.event.head_commit.message }}"
NETLIFY_DEPLOY_TO_PROD: true
build_directory: site
install_command: "echo Skipping installing the dependencies"
build_command: "echo Skipping building the web files"