Skip to content

Commit

Permalink
👷 automating the release process
Browse files Browse the repository at this point in the history
  • Loading branch information
yhino committed Apr 19, 2021
1 parent 21d64c9 commit 93c4a07
Show file tree
Hide file tree
Showing 4 changed files with 588 additions and 29 deletions.
36 changes: 8 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,15 @@ name: release

on:
push:
tags:
- "*.*.*"
branches: [master]

jobs:
release:

if: contains(github.event.head_commit.message, ':bookmark:')
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false

- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
Expand All @@ -31,21 +19,13 @@ jobs:
- name: Install poetry
run: |
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
source $HOME/.poetry/env
- name: Install dependencies
run: |
source $HOME/.poetry/env
poetry install --no-dev
- name: Build package
run: |
source $HOME/.poetry/env
poetry build
- name: Publish to PyPI
- name: Semantic Release
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
source $HOME/.poetry/env
poetry publish
pip install python-semantic-release
git config user.name github-actions
git config user.email github-actions@github.com
semantic-release publish -v DEBUG -D commit_author="github-actions <github-actions@github.com>"
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Changelog

<!--next-version-placeholder-->

## v0.1.4 (2021-04-11)

### :sparkles:
* :sparkles: coloring error/warning message ([`724b2f0`](https://github.com/yhino/pipenv-poetry-migrate/commit/724b2f04347336b5176fb3325a8086cc39c75491))
* :sparkles: add show version option ([`61b42d1`](https://github.com/yhino/pipenv-poetry-migrate/commit/61b42d1bbe757389c687b281733d20229000dade))

### :bug:
* :bug: fix failure test ([`1bd231f`](https://github.com/yhino/pipenv-poetry-migrate/commit/1bd231fae448949ab81a9a16b54b856649375fb2))
* :bug: fix version number management ([`29e2e7a`](https://github.com/yhino/pipenv-poetry-migrate/commit/29e2e7a4e90bfb5ff8294bf937ccb134f83a431b))

### Other
* Merge pull request #12 from yhino/release-0.1.4 ([`240274a`](https://github.com/yhino/pipenv-poetry-migrate/commit/240274a37072651aa2d2ef03cdc2ab839ea55459))
* :bookmark: release 0.1.4 ([`33cb1b4`](https://github.com/yhino/pipenv-poetry-migrate/commit/33cb1b48e21087a435367d8142aee200bdfeee73))
* Merge pull request #11 from yhino/issue-10 ([`2c3335a`](https://github.com/yhino/pipenv-poetry-migrate/commit/2c3335ac34f960eb6b75f97ad6e7d9501aa808c8))
* Fix #10 changed the dependent version of tomlkit ([`f6b4f05`](https://github.com/yhino/pipenv-poetry-migrate/commit/f6b4f051c28709903fcd3ffbe0199da4ebe687d8))
* :package: fix package information ([`7480a9d`](https://github.com/yhino/pipenv-poetry-migrate/commit/7480a9df81c5dadd66fc887a085f7577fc06f559))
* Fixed a bug in the clean task ([`085646d`](https://github.com/yhino/pipenv-poetry-migrate/commit/085646d246f9bb2a455dc6fbb89380ead26fabaf))
* :triangular_flag_on_post: remove migration feature in scripts section ([`8271d26`](https://github.com/yhino/pipenv-poetry-migrate/commit/8271d26a680d0728bef098c41cf2d66a06fad1eb))
* [skip ci] :memo: add badge ([`2d5730c`](https://github.com/yhino/pipenv-poetry-migrate/commit/2d5730cc3f59f77ed3be0cfa3a476f8c2d4cc9bc))
* [skip ci] :memo: fix badge layout ([`b8075a1`](https://github.com/yhino/pipenv-poetry-migrate/commit/b8075a105b403899814d2eb7cd9ce79698df935b))
* :memo: add badge of the codecov ([`b1284af`](https://github.com/yhino/pipenv-poetry-migrate/commit/b1284af687c5e51f0e3e40927241bf98f48f7db9))
* :construction_worker: upload coverage to Codecov ([`8d6f3c1`](https://github.com/yhino/pipenv-poetry-migrate/commit/8d6f3c17950a1b3edc7a55272df10f2142a97c31))

Loading

0 comments on commit 93c4a07

Please sign in to comment.