8000 fix ci issues by pww217 · Pull Request #312 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

fix ci issues #312

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 6 commits into from
May 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/build-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
id-token: write
defaults:
run:
working-directory: ./pyscriptjs
working-directory: pyscriptjs

steps:
- name: Checkout
Expand All @@ -43,11 +43,12 @@ jobs:
- name: Build pyscript
run: |
npm run build

# 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/alpha/ # What artifacts exactly need to be copied?
run: aws s3 sync --quiet ./examples/build/ s3://pyscript-static/alpha/
11 changes: 8 additions & 3 deletions .github/workflows/build-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
- .github/workflows/build-latest.yml # Test that workflow works when changed

pull_request: # Run on any PR that modifies files in pyscriptjs/
branches:
- main
paths:
- pyscriptjs/**
- .github/workflows/**
- .github/workflows/build-latest.yml # Test that workflow works when changed

jobs:
build:
Expand All @@ -21,7 +23,7 @@ jobs:
id-token: write
defaults:
run:
working-directory: ./pyscriptjs
working-directory: pyscriptjs

steps:
- name: Checkout
Expand All @@ -48,11 +50,14 @@ jobs:
- name: Build pyscript
run: |
npm run build

# Deploy to S3
- name: Configure AWS credentials
if: github.ref == 'refs/heads/main' # Only deploy on merge into main
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/unstable/ # What artifacts exactly need to be copied?
if: github.ref == 'refs/heads/main'
run: aws s3 sync --quiet ./examples/build/ s3://pyscript-static/unstable
8 changes: 6 additions & 2 deletions .github/workflows/sync-examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,18 @@ jobs:
id-token: write
defaults:
run:
working-directory: ./pyscriptjs/examples
working-directory: pyscriptjs/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
run: aws s3 sync . s3://pyscript-static/examples/
# Sync outdated or new files, delete ones no longer in source
run: aws s3 sync --quiet --delete . s3://pyscript-static/examples/ # Sync directory, delete what is not in source
1 change: 0 additions & 1 deletion pyscriptjs/examples/toga/static/pyscript

This file was deleted.

0