Skip to content

Commit

Permalink
ci: disable Release Job on CircleCI and move back to GitHub Action
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 5773199 commit 6ebb6df
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
20 changes: 10 additions & 10 deletions .circleci/config.yml
Expand Up @@ -123,13 +123,13 @@ workflows:
parameters:
python_version: ["39", "38", "37", "36"]
- coding_standards
release:
jobs:
- release_and_pypi_publish
triggers:
- schedule:
cron: "* * * * *"
filters:
branches:
only:
- main
# release:
# jobs:
# - release_and_pypi_publish
# triggers:
# - schedule:
# cron: "* * * * *"
# filters:
# branches:
# only:
# - main
68 changes: 34 additions & 34 deletions .github/workflows/deploy.yml
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:
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 }}
pypi_token: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 6ebb6df

Please sign in to comment.