Skip to content
Merged
Show file tree
Hide file tree
Changes from 7 commits
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
2 changes: 1 addition & 1 deletion .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
path-to-signatures: 'cla-bot/v1/cla.json'
# branch should not be protected
branch: 'main'
allowlist: user1,bot*
allowlist: user1,bot*,actions-user*
remote-organization-name: mlcommons
remote-repository-name: systems

Expand Down
61 changes: 61 additions & 0 deletions .github/workflows/version_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Update version and publish release
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Set Up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Install protolock
run: |
go install github.com/nilslice/protolock/cmd/protolock@latest
protolock
- name: Check broken compatibility and update version
run: |
python3 version.py
echo "RELEASE_TAG=$(cat VERSION)" >> $GITHUB_ENV
- name: Commit changes
uses: EndBug/add-and-commit@v9
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
author_name: GitHub Actions
author_email: [email protected]
message: Release ${{ env.RELEASE_TAG }}
add: "['VERSION', 'proto.lock']"
push: "-o ci.skip"
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.RELEASE_TAG }}
release_name: Release ${{ env.RELEASE_TAG }}
body: |
Release ${{ env.RELEASE_TAG }}
draft: false
prerelease: false
- name: Build wheel
run: |
pip install --upgrade build
python3 -m build
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./dist/chakra-${{ env.RELEASE_TAG }}-py3-none-any.whl
asset_name: chakra.whl
asset_content_type: application/whl
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ __pycache__/
*.et
*.dot
.pyre
.vscode/
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit seems a bit user editor specific

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I've removed it

1 change: 1 addition & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.4.0
Loading