Skip to content

Commit

Permalink
ci: disabled GitHub Action for deployment
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <phorton@sonatype.com>
  • Loading branch information
madpah committed Oct 13, 2021
1 parent e41a7a2 commit daebf39
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,38 @@
# See the License for the specific language governing permissions and
# limitations under the License.

name: Deploy to PyPI

on:
push:
branches:
- main
workflow_dispatch:

jobs:
release:
# https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
# limit this to being run on regular commits, not the commits that semantic-release will create
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
runs-on: ubuntu-latest
concurrency: release
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install poetry --upgrade pip
poetry config virtualenvs.create false
poetry install
- name: View poetry version
run: poetry --version
- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pypi_token: ${{ secrets.PYPI_TOKEN }}
#name: Deploy to PyPI
#
#on:
# push:
# branches:
# - main
# workflow_dispatch:
#
#jobs:
# release:
# # https://github.community/t/how-do-i-specify-job-dependency-running-in-another-workflow/16482
# # limit this to being run on regular commits, not the commits that semantic-release will create
# if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'chore(release):')
# runs-on: ubuntu-latest
# concurrency: release
# steps:
# - name: Checkout code
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install poetry --upgrade pip
# poetry config virtualenvs.create false
# poetry install
# - name: View poetry version
# run: poetry --version
# - name: Python Semantic Release
# uses: relekang/python-semantic-release@master
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit daebf39

Please sign in to comment.