Refresh of Jupyter environment #65
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
| # This workflow will publish labs to contentful for displaying Optimizely Labs | |
| name: Contentful Upload | |
| on: | |
| push: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.8 | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.8 | |
| - name: Install Dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Upload | |
| env: | |
| LIBRARY_URL: https://library.optimizely.com/ | |
| LIBRARY_S3_BUCKET: library-optimizely-com | |
| LIBRARY_S3_ACCESS_KEY: ${{ secrets.LIBRARY_S3_ACCESS_KEY }} | |
| LIBRARY_S3_SECRET_KEY: ${{ secrets.LIBRARY_S3_SECRET_KEY }} | |
| LABS_CONTENTFUL_SPACE_ID: zw48pl1isxmc | |
| LABS_CONTENTFUL_ENVIRONMENT: master | |
| LABS_CONTENTFUL_MANAGEMENT_API_TOKEN: ${{ secrets.MARKETING_CONTENTFUL_MANAGEMENT_API_TOKEN }} | |
| run: | | |
| python utils/publish.py |