10000 add release.yml, release automation ready for prod by pww217 · Pull Request #539 · pyscript/pyscript · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add release.yml, release automation ready for prod
  • Loading branch information
pww217 committed Jun 22, 2022
commit 0a07608a67b329fa9134f38a33cde678266bd3be
5 changes: 5 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
changelog:
categories:
- title: New Features
- title: Breaking Changes
- title: Known Issues
4 changes: 2 additions & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]+'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just leaving the comment for posterity.. As agreed in previous discussions, this complies with the chosen format YYYY.MM.MICRO, where MICRO is a counter.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's basically a glob pattern match that requires a valid 4 digit year, 2 digit month, and the last one should be able to go up to 99.

I made the example releases 2022.06.1 (not sure if micro starts at 1 or 0).


env:
MINICONDA_PYTHON_VERSION: py38
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -59,4 +59,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/alpha/
0