-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (29 loc) · 977 Bytes
/
contentful-upload.yml
File metadata and controls
37 lines (29 loc) · 977 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# 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