Files
pyscript/.github/workflows/sync-examples.yml
Ted Patrick e4e8f2edae Fix build unstable to run on ubuntu-latest-8core (#1549)
* Fix build unstable to run on ubuntu-latest-8core

* ubuntu-latest to ubuntu-latest-8core
2023-06-20 12:17:08 -05:00

30 lines
905 B
YAML

name: "[CI] Sync Examples"
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest-8core
permissions:
contents: read
id-token: write
defaults:
run:
working-directory: examples
steps:
# Deploy to S3
- name: Checkout
uses: actions/checkout@v3
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1.6.1
with:
aws-region: ${{ secrets.AWS_REGION }}
role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }}
- name:
Sync to S3
# Sync outdated or new files, delete ones no longer in source
run: aws s3 sync --quiet --delete . s3://pyscript.net/examples/ # Sync directory, delete what is not in source