diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml index 9967fc49cf1..27c0c25eba9 100644 --- a/.github/release-drafter.yml +++ b/.github/release-drafter.yml @@ -1,10 +1,28 @@ name-template: 'OpenBB Terminal v$NEXT_MINOR_VERSION' tag-template: 'v$NEXT_MINOR_VERSION' +exclude-contributors: + - 'jmaslek' + - 'DidierRLopes' + - 'JerBouma' + - 'deeleeramone' + - 'hjoaquim' + - 'jose-donato' + - 'luqman-bello' + - 'martinb-bb' + - 'montezdesousa' + - 'tehcoderer' + - 'Chavithra' + - 'colin99d' + - 'northern-64bit' + - 'piiq' + - 'andrewkenreich' template: | ## Thank you and welcome to our new contributors 🔥 $CONTRIBUTORS + ## What's new 🎉 + ## What's changed 🚀 $CHANGES diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index e4db6dd6d63..1f2f3f186b8 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -10,7 +10,7 @@ jobs: with: mode: minimum count: 1 - labels: "guides, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, discord, dependencies, notebookreports, dashboards, analytics, portfolio, installer, SDK, HACKTOBERFEST, " + labels: "guides, bug, build, do not merge, docker, docs, duplicate, enhancement, feat XS, feat S, feat M, feat L, feat XL, help wanted, refactor, tests, discord, dependencies, notebookreports, dashboards, analytics, portfolio, installer, SDK, release " - uses: mheap/github-action-required-labels@v1 with: mode: exactly diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml new file mode 100644 index 00000000000..59b61111ace --- /dev/null +++ b/.github/workflows/pypi.yml @@ -0,0 +1,79 @@ +name: Deploy to PyPI + +on: + push: + branches: + - release/* + - main + + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + deploy-test-pypi: + name: Build and publish distributions 📦 to PyPI and TestPyPI + if: startsWith(github.ref, 'refs/heads/release/') + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.TEST_PYPI_API_TOKEN }} + repository_url: https://test.pypi.org/legacy/ + + deploy-pypi: + name: Build and publish distributions 📦 to PyPI and TestPyPI + if: startsWith(github.ref, 'refs/heads/main') + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Setup Python 3.9 + uses: actions/setup-python@v4 + with: + python-version: "3.9" + + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + . + + - name: Publish distribution 📦 to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}