mirror of
https://github.com/pyscript/pyscript.git
synced 2026-05-22 09:00:20 -04:00
Split build jobs, add S3 push (#307)
* split files, add s3 push * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * dedent * indent * alpha directory * remove on: PR from alpha * workflow names * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove js-lint.yml (replaced by pre-commit); add sync-examples.yml * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update sync-examples.yml * change unstable to latest, master -> main Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
29
.github/workflows/sync-examples.yml
vendored
Normal file
29
.github/workflows/sync-examples.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
name: '[CI] Sync Examples'
|
||||
|
||||
on:
|
||||
push: # Only run on merges into main that modify files under pyscriptjs/examples/
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- pyscriptjs/examples/**
|
||||
- .github/workflows/sync-examples.yml # Test that workflow works when changed
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ./pyscriptjs/examples
|
||||
|
||||
steps:
|
||||
# Deploy to S3
|
||||
- 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
|
||||
run: aws s3 sync . s3://pyscript-static/examples/
|
||||
Reference in New Issue
Block a user