From ebfed27630c1e41fb42f3a67ef5978df1c9a71c3 Mon Sep 17 00:00:00 2001 From: Peter W <34256109+pww217@users.noreply.github.com> Date: Fri, 24 Jun 2022 10:32:00 -0500 Subject: [PATCH] release, latest, unstable branches (#550) * build unstable workflow * releases are synced to /latest and /releases/YYYY.MM.MICRO/ * slashes --- .github/workflows/{build-latest.yml => build-unstable.yml} | 4 ++-- .github/workflows/publish-release.yml | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) rename .github/workflows/{build-latest.yml => build-unstable.yml} (97%) diff --git a/.github/workflows/build-latest.yml b/.github/workflows/build-unstable.yml similarity index 97% rename from .github/workflows/build-latest.yml rename to .github/workflows/build-unstable.yml index 050288c6..6dccd68d 100644 --- a/.github/workflows/build-latest.yml +++ b/.github/workflows/build-unstable.yml @@ -1,4 +1,4 @@ -name: '[CI] Build Latest' +name: '[CI] Build Unstable' on: push: # Only run on merges into main that modify files under pyscriptjs/ @@ -71,4 +71,4 @@ jobs: - name: Sync to S3 if: github.ref == 'refs/heads/main' - run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/latest/ + run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/unstable/ diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index f6c1e27e..47d1436d 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -57,5 +57,6 @@ jobs: role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }} - name: Sync to S3 - run: | # Overwrite "latest" alpha + versioned subdirectory - aws s3 sync --quiet ./examples/build/ s3://pyscript.net/releases/${{ github.ref_name }} + run: | # Update /latest and create an explicitly versioned directory under releases/YYYY.MM.MICRO/ + aws s3 sync --quiet ./examples/build/ s3://pyscript.net/latest/ + aws s3 sync --quiet ./examples/build/ s3://pyscript.net/releases/${{ github.ref_name }}/