diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 0000000..6498791 --- /dev/null +++ b/.github/release-drafter.yml @@ -0,0 +1,27 @@ +categories: + - title: ':boom: Breaking Changes' + label: 'breaking' + - title: ':package: Build System' + label: 'build' + - title: ':construction_worker: Continuous Integration' + label: 'ci' + - title: ':books: Documentation' + label: 'documentation' + - title: ':rocket: Features' + label: 'enhancement' + - title: ':beetle: Fixes' + label: 'bug' + - title: ':racehorse: Performance' + label: 'performance' + - title: ':hammer: Refactoring' + label: 'refactoring' + - title: ':fire: Removals and Deprecations' + label: 'removal' + - title: ':lipstick: Style' + label: 'style' + - title: ':rotating_light: Testing' + label: 'testing' +template: | + ## What’s Changed + + $CHANGES \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml new file mode 100644 index 0000000..0f7b33c --- /dev/null +++ b/.github/workflows/release-drafter.yml @@ -0,0 +1,12 @@ +name: Release Drafter +on: + push: + branches: + - main +jobs: + draft_release: + runs-on: ubuntu-latest + steps: + - uses: release-drafter/release-drafter@v5.18.1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..eea8994 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Release +on: + release: + types: [published] +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2.3.2 + with: + python-version: '3.8' + architecture: x64 + - run: pip install --constraint=.github/workflows/constraints.txt pip + - run: pip install --constraint=.github/workflows/constraints.txt poetry + - run: poetry build + - run: poetry publish --username=__token__ --password=${{ secrets.PYPI_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/requirements.txt b/.github/workflows/requirements.txt new file mode 100644 index 0000000..d81e134 --- /dev/null +++ b/.github/workflows/requirements.txt @@ -0,0 +1,2 @@ +pip==22.0.3 +poetry==1.1.12 \ No newline at end of file