mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
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:
5
.github/release.yml
vendored
Normal file
5
.github/release.yml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
changelog:
|
||||
categories:
|
||||
- title: New Features
|
||||
- title: Breaking Changes
|
||||
- title: Known Issues
|
||||
2
.github/workflows/build-latest.yml
vendored
2
.github/workflows/build-latest.yml
vendored
@@ -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/
|
||||
|
||||
4
.github/workflows/build-release.yml
vendored
4
.github/workflows/build-release.yml
vendored
@@ -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
|
||||
|
||||
5
.github/workflows/publish-release.yml
vendored
5
.github/workflows/publish-release.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user