Merge pull request #397 from saturncloud/hugo/backup #70
This file contains 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 generates a new templates.json file with the recipes embedded on every push. | |
name: Generate Embedded Templates | |
# Controls when the action will run. Triggers the workflow on push | |
# events but only for main and branches that start with "release" | |
on: | |
push: | |
branches: | |
- main | |
- "release*" | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# This workflow contains a single job called "pull-request" | |
generate-templates: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.7 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{ secrets.EXAMPLE_TEMPLATES_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.EXAMPLE_TEMPLATES_SECRET_ACCESS_KEY }} | |
aws-region: us-east-1 | |
- name: Generate recipe sets out of templates containing embedded recipes | |
shell: bash | |
run: | | |
pip install --upgrade boto3 | |
make templates.json |