Skip to content

Commit

Permalink
Develop (#219)
Browse files Browse the repository at this point in the history
* ci: add publish

* chore(release): 5.1.0-beta.1

# [5.1.0-beta.1](v5.0.1...v5.1.0-beta.1) (2021-06-08)

### Bug Fixes

* copyright headers ([be6c108](be6c108))
* don't require lint yet ([6a63509](6a63509))
* update copyright headers ([d34fbe4](d34fbe4))

### Features

* Publish docker container with tool ([b136c90](b136c90))

* fix: remove unused branches

* ci: pass pypi creds to release

* fix: bump version

* Update .releaserc

* Revert "Update .releaserc"

This reverts commit ae189a4.

* fix: bump

* fix: move release commands to bash script

* fix: bump

* fix: fix script

Co-authored-by: semantic-release-bot <semantic-release-bot@martynus.net>
  • Loading branch information
Ryan Faircloth and semantic-release-bot authored Jun 8, 2021
1 parent ac3d0a4 commit 9e002a7
Show file tree
Hide file tree
Showing 5 changed files with 1,713 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ jobs:
path: /tmp/analysis-reports
- name: Update Notices
run: cp -f /tmp/analysis-reports/NOTICE_summary NOTICE

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2.5.4
with:
Expand All @@ -241,7 +240,9 @@ jobs:
@semantic-release/exec
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.SEMREL_TOKEN }} #
GITHUB_TOKEN: ${{ secrets.SEMREL_TOKEN }}
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
update-semver:
name: Move Respository semver tags
if: startsWith(github.ref, 'refs/tags/v')
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/sr-prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eE
set -v
source $HOME/.poetry/env
poetry version $1
poetry build
7 changes: 7 additions & 0 deletions .github/workflows/sr-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

set -eE
set -v
source $HOME/.poetry/env
echo pypy user=${PYPI_USERNAME}
poetry publish -n -u ${PYPI_USERNAME} -p ${PYPI_TOKEN}
11 changes: 5 additions & 6 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@
# limitations under the License.
#
{
"branches":
branches:
[
"+([0-9])?(.{+([0-9]),x}).x",
"main",
"next",
"next-major",
{ name: "develop", prerelease: true },
{ name: "develop", prerelease: "beta", channel: "beta" },
],
plugins:
[
Expand All @@ -29,8 +27,9 @@
[
"@semantic-release/exec",
{
"prepareCmd": "source $HOME/.poetry/env ;poetry version ${nextRelease.version}; poetry build"
"publishCmd": "source $HOME/.poetry/env ;poetry publish ;poetry publish --build -u $PYPI_USERNAME -p $PYPI_TOKEN"
"prepareCmd": "./.github/workflows/sr-prepare.sh ${nextRelease.version}",
"publishCmd": "./.github/workflows/sr-release.sh",
"shell": "bash"
},
],
[
Expand Down
Loading

0 comments on commit 9e002a7

Please sign in to comment.