Skip to content

Merge pull request #142 from MLPlatformWebsite/pjc-transfer-linaro-sc… #73

Merge pull request #142 from MLPlatformWebsite/pjc-transfer-linaro-sc…

Merge pull request #142 from MLPlatformWebsite/pjc-transfer-linaro-sc… #73

Workflow file for this run

name: PushAction

Check failure on line 1 in .github/workflows/push.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/push.yml

Invalid workflow file

(Line: 20, Col: 5): Unexpected value 'image'
on:
push:
branches: [ master ]
workflow_dispatch:
permissions:
id-token: write # Required to request the OIDC token
contents: read # Required to check out the code
# Cancel in-progress jobs or runs for the current workflow
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
process-push:
runs-on: ubuntu-latest
image: fsfe/pipenv:python-3.12
defaults:
run:
working-directory: ${{ github.workspace }}/website
steps:
- name: Fetch git repository
uses: actions/checkout@v4
with:
path: website
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::841045539419:role/github-actions-oidc-role
aws-region: us-east-1
- name: Initialise environment
run: |
cat ".github-env-${GITHUB_REF##*/}" >> $GITHUB_ENV
pipenv --rm || true # Force-remove any old/broken venv
pipenv lock
pipenv sync
- run: env
- name: Build site
run: ./tools/build-jekyll-site.sh
env:
TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Check links
run: pipenv run ./tools/check-links.sh ${{ github.workspace }}/website/${{ env.SITE_URL }}
- name: Check routing rules
run: pipenv run ./tools/test-routing-rules.sh
- name: Upload to S3
run: ./tools/upload-to-s3-root.sh
- name: Set up Lambda redirect
run: ./tools/set-up-lambda-redirect.sh ${{ github.workspace }}/website
- name: Set up security headers
run: pipenv run python ./tools/lambda-security-headers.py
- name: Invalidate CloudFront cache
run: ./tools/invalidate-cloudfront.sh