diff --git a/.github/release.yml b/.github/release.yml new file mode 100644 index 00000000..bee3dc8e --- /dev/null +++ b/.github/release.yml @@ -0,0 +1,5 @@ +changelog: + categories: + - title: New Features + - title: Breaking Changes + - title: Known Issues diff --git a/.github/workflows/build-latest.yml b/.github/workflows/build-latest.yml index 8477cf15..050288c6 100644 --- a/.github/workflows/build-latest.yml +++ b/.github/workflows/build-latest.yml @@ -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/unstable + run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/latest/ diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index a3ad02bc..cb900caa 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -3,7 +3,7 @@ name: '[CI] Build Release' on: push: tags: - - '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]' + - '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]+' # YYYY.MM.MICRO env: MINICONDA_PYTHON_VERSION: py38 @@ -46,7 +46,7 @@ jobs: run: make setup - name: Build and Test - run: make build # Replace with make test later + run: make test - name: Prepare Release uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 271b88b0..f6c1e27e 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -47,7 +47,7 @@ jobs: run: make setup - name: Build and Test - run: make build # set back to make test + run: make test # Upload to S3 - name: Configure AWS credentials @@ -58,5 +58,4 @@ jobs: - name: Sync to S3 run: | # Overwrite "latest" alpha + versioned subdirectory - aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/${{ github.ref_name }} -# aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/ + aws s3 sync --quiet ./examples/build/ s3://pyscript.net/releases/${{ github.ref_name }}