Skip to content

Commit

Permalink
testing github workflow 10
Browse files Browse the repository at this point in the history
  • Loading branch information
dapplegatecp committed Apr 10, 2024
1 parent b12634e commit 919a2e1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 56 deletions.
29 changes: 0 additions & 29 deletions .github/workflows/ncm_bump_version.yaml

This file was deleted.

55 changes: 29 additions & 26 deletions .github/workflows/ncm_pypi_package.yaml
Original file line number Diff line number Diff line change
@@ -1,34 +1,37 @@
name: pypi package ncm api
name: bump version

on:
push:
tags:
- 'v*'
paths:
- "ncm/**"

jobs:
build:

bump_version:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12' # specify the version of Python you're using

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine build
- name: Build package
run: cd ncm && python -m build --sdist --wheel

- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} # make sure you have set up the secret in your repository settings
run: |
cd ncm && twine upload dist/*
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel twine build bump2version
git config --global user.email "[email protected]"
git config --global user.name "Github Action"
- name: Bump version
run: |
cd ncm && bump2version patch
- name: Push changes
run: |
git push
- name: Build package
run: cd ncm && python -m build --sdist --wheel
- name: Upload to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
cd ncm && twine upload dist/*
1 change: 0 additions & 1 deletion ncm/.bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
[bumpversion]
current_version = 0.0.33
commit = True
tag = True

[bumpversion:file:setup.py]

0 comments on commit 919a2e1

Please sign in to comment.