add release.yml, release automation ready for prod (#539)

* add release.yml, release automation ready for prod

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update .github/workflows/build-release.yml

Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>

* dont overwrite /alpha/ and change unstable to latest

* alpha -> releases

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Antonio Cuni <anto.cuni@gmail.com>
This commit is contained in:
Peter W
2022-06-23 11:08:25 -05:00
committed by GitHub
parent fa61339a49
commit 01b64e18ab
4 changed files with 10 additions and 6 deletions

5
.github/release.yml vendored Normal file
View File

@@ -0,0 +1,5 @@
changelog:
categories:
- title: New Features
- title: Breaking Changes
- title: Known Issues

View File

@@ -71,4 +71,4 @@ jobs:
- name: Sync to S3 - name: Sync to S3
if: github.ref == 'refs/heads/main' 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/

View File

@@ -3,7 +3,7 @@ name: '[CI] Build Release'
on: on:
push: push:
tags: 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: env:
MINICONDA_PYTHON_VERSION: py38 MINICONDA_PYTHON_VERSION: py38
@@ -46,7 +46,7 @@ jobs:
run: make setup run: make setup
- name: Build and Test - name: Build and Test
run: make build # Replace with make test later run: make test
- name: Prepare Release - name: Prepare Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1

View File

@@ -47,7 +47,7 @@ jobs:
run: make setup run: make setup
- name: Build and Test - name: Build and Test
run: make build # set back to make test run: make test
# Upload to S3 # Upload to S3
- name: Configure AWS credentials - name: Configure AWS credentials
@@ -58,5 +58,4 @@ jobs:
- name: Sync to S3 - name: Sync to S3
run: | # Overwrite "latest" alpha + versioned subdirectory 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/releases/${{ github.ref_name }}
# aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/