Skip to content

Commit

Permalink
ci: update to use 'main' branch
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvoke authored and sbrl committed May 1, 2021
1 parent 5ff5ff6 commit d33da35
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit d33da35

Please sign in to comment.