ci: update to use 'main' branch

fix-hunspell-typos-042721
Owen Voke 2021-01-08 09:13:15 +00:00 committed by Starbeamrainbowlabs
parent 5ff5ff69e2
commit d33da35733
1 changed files with 3 additions and 3 deletions

View File

@ -29,20 +29,20 @@ jobs:
run: bash scripts/build.sh
- name: Setup Python for PDF generation
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/main'
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Build PDF
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/main'
run: |
cd scripts/pdf/
pip3 install -r requirements.txt
python3 render.py ../../pages -c solarized-light
- name: Deploy
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/master'
if: github.repository == 'tldr-pages/tldr' && github.ref == 'refs/heads/main'
run: bash scripts/deploy.sh
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}