Merge pull request #978 from creativecommons/avoiding-gen-ai-tools #3226
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and Deploy CC Open Source | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # https://github.com/actions/setup-python | |
| - name: setup python version | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.11 | |
| - name: Install pipenv | |
| run: | | |
| pip install --upgrade pip | |
| pip install pipenv | |
| # https://github.com/actions/checkout | |
| - uses: actions/checkout@v4 | |
| - name: Install dependencies | |
| run: pipenv sync | |
| - name: Build static site and use webpack | |
| run: pipenv run lektor build -f webpack | |
| - name: Deploy to production | |
| if: github.ref == 'refs/heads/main' | |
| run: | | |
| pipenv run lektor deploy ghpages --username ${{ secrets.LEKTOR_DEPLOY_USERNAME }} --password ${{ secrets.LEKTOR_DEPLOY_PASSWORD }} |