Skip to content
This repository has been archived by the owner on Jan 9, 2024. It is now read-only.

Commit

Permalink
Automatic release wiring and version bump
Browse files Browse the repository at this point in the history
Bumps version in `lemonade.version`. This is towards setting up a
release mechanism for wheels for tagged versions.
  • Loading branch information
jerinphilip committed Jan 14, 2022
1 parent 3cb4d8b commit 8bb6f21
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 5 deletions.
29 changes: 25 additions & 4 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ name: "Python Bindings"
'on':
push:
branches:
- main
- main
tags:
- "v*.*.*"
pull_request:
branches:
- '**'
- '**'
env:
qt_version: "6.2.1" # only used by build-macos
ccache_basedir: ${{ github.workspace }}
Expand Down Expand Up @@ -217,8 +219,8 @@ jobs:
path: ${{github.workspace}}/dist/bergamot-*.whl

# Try to upload a release using https://github.com/marvinpinto/actions/issues/177#issuecomment-917605585 as a model
release:
name: Release build
release-latest:
name: Release Latest Build
runs-on: ubuntu-latest
needs: [python-ubuntu, python-macos]
if: github.ref == 'refs/heads/main'
Expand All @@ -236,3 +238,22 @@ jobs:
files: |
${{github.workspace}}/artifact/*.whl
release-version:
name: Release version
runs-on: ubuntu-latest
needs: [python-ubuntu, python-macos]
if: startsWith(github.ref, 'refs/tags/v')
steps:
- name: Download artifacts
uses: actions/download-artifact@v2

- name: Update GitHub release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ github.ref_name }}
prerelease: false
title: "Release ${{ github.ref_name }} "
files: |
${{github.workspace}}/artifact/*.whl
2 changes: 1 addition & 1 deletion lemonade.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.1.0
v0.1.1

0 comments on commit 8bb6f21

Please sign in to comment.