8000 Split build jobs, add S3 push by pww217 · Pull Request #307 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

Split build jobs, add S3 push #307

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 9, 2022
Merged
Prev Previous commit
Next Next commit
remove js-lint.yml (replaced by pre-commit); add sync-examples.yml
  • Loading branch information
pww217 committed May 9, 2022
commit 352cdfbe15db7fac74b6f0304c8d2d78934f0271
2 changes: 1 addition & 1 deletion .github/workflows/build-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- '**' # Currently any tag, need to slim down
paths:
- pyscriptjs/**
- .github/workflows/** # Test that workflows work when changed
- .github/workflows/build-alpha.yml # Test that workflow works when changed

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- main
paths:
- pyscriptjs/**
- .github/workflows/** # Test that workflows work when changed
- .github/workflows/build-unstable.yml # Test that workflow works when changed

pull_request: # Run on any PR that modifies files in pyscriptjs/
paths:
Expand Down
47 changes: 0 additions & 47 deletions .github/workflows/js-lint.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/sync-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "[CI] Sync Examples"

on:
push: # Only run on merges into master that modify files under pyscriptjs/
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/
0