8000 add release.yml, release automation ready for prod (#539) · pyscript/pyscript@01b64e1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 01b64e1

Browse files
pww217pre-commit-ci[bot]antocuni
authored
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>
1 parent fa61339 commit 01b64e1

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed

.github/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
changelog:
2+
categories:
3+
- title: New Features
4+
- title: Breaking Changes
5+
- title: Known Issues

.github/workflows/build-latest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@ jobs:
7171

7272
- name: Sync to S3
7373
if: github.ref == 'refs/heads/main'
74-
run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/unstable
74+
run: aws s3 sync --quiet ./examples/build/ s3://pyscript.net/latest/

.github/workflows/build-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: '[CI] Build Release'
33
on:
44
push:
55
tags:
6-
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]'
6+
- '[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9]+' # YYYY.MM.MICRO
77

88
env:
99
MINICONDA_PYTHON_VERSION: py38
@@ -46,7 +46,7 @@ jobs:
4646
run: make setup
4747

4848
- name: Build and Test
49-
run: make build # Replace with make test later
49+
run: make test
5050

5151
- name: Prepare Release
5252
uses: softprops/action-gh-release@v1

.github/workflows/publish-release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: make setup
4848

4949
- name: Build and Test
50-
run: make build # set back to make test
50+
run: make test
5151

5252
# Upload to S3
5353
- name: Configure AWS credentials
@@ -58,5 +58,4 @@ jobs:
5858

5959
- name: Sync to S3
6060
run: | # Overwrite "latest" alpha + versioned subdirectory
61-
aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/${{ github.ref_name }}
62-
# aws s3 sync --quiet ./examples/build/ s3://pyscript.net/alpha/
61+
aws s3 sync --quiet ./examples/build/ s3://pyscript.net/releases/${{ github.ref_name }}

0 commit comments

Comments
 (0)
0