Skip to content

Commit

Permalink
Merge pull request #296 from Carreau/nover
Browse files Browse the repository at this point in the history
vercel more removal
  • Loading branch information
Carreau authored Sep 28, 2023
2 parents 3214821 + b80c253 commit 82911d9
Showing 1 changed file with 0 additions and 49 deletions.
49 changes: 0 additions & 49 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,52 +136,3 @@ jobs:
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}

vercel-deploy-prod:
runs-on: ubuntu-latest
needs: [build]
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
flit install --symlink
git clone https://github.com/stsewd/tree-sitter-rst
cd tree-sitter-rst
git checkout 3fc88d2097bc854ab6bf70c52b3c482849cf8e8f
cd -
papyri build-parser
- uses: actions/download-artifact@v3
with:
name: doc-bundles
path: ~/.papyri/data/

- name: Ingest and Render
run: |
papyri install ~/.papyri/data/*.zip
papyri relink
papyri render
- name: Install Vercel CLI
run: npm install --global vercel@latest

- name: Deploy Project Artifacts to Vercel
id: vercel
working-directory: "/home/runner/.papyri/html"
run: |
vercel --version
vercel pull --yes --environment=production --token=$VERCEL_TOKEN
vercel build --prod --token=$VERCEL_TOKEN
vercel deploy --prebuilt --prod --archive=tgz --token=$VERCEL_TOKEN --meta commit=${{ github.sha }}--${{ github.run_id }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}

0 comments on commit 82911d9

Please sign in to comment.