-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
d3b398e
split files, add s3 push
pww217 15b4a51
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] a7dd3e3
dedent
pww217 c5f2067
indent
pww217 d53d88e
alpha directory
pww217 05b171b
remove on: PR from alpha
pww217 1e245d7
integrate nodejs 18 change
pww217 000c838
workflow names
pww217 e316348
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 352cdfb
remove js-lint.yml (replaced by pre-commit); add sync-examples.yml
pww217 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
remove js-lint.yml (replaced by pre-commit); add sync-examples.yml
- Loading branch information
commit 352cdfbe15db7fac74b6f0304c8d2d78934f0271
There are no files selected for viewing
This file contains hidden or 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 file contains hidden or 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 file was deleted.
Oops, something went wrong.
This file contains hidden or 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
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/ |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.