mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-03-28 21:16:20 +01:00
ci: update to use 'main' branch
This commit is contained in:
parent
5ff5ff69e2
commit
d33da35733
1 changed files with 3 additions and 3 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
@ -29,20 +29,20 @@ jobs:
|
||||||
run: bash scripts/build.sh
|
run: bash scripts/build.sh
|
||||||
|
|
||||||
- name: Setup Python for PDF generation
|
- 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
|
uses: actions/setup-python@v2
|
||||||
with:
|
with:
|
||||||
python-version: '3.x'
|
python-version: '3.x'
|
||||||
|
|
||||||
- name: Build PDF
|
- 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: |
|
run: |
|
||||||
cd scripts/pdf/
|
cd scripts/pdf/
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
python3 render.py ../../pages -c solarized-light
|
python3 render.py ../../pages -c solarized-light
|
||||||
|
|
||||||
- name: Deploy
|
- 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
|
run: bash scripts/deploy.sh
|
||||||
env:
|
env:
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue