Skip to content

Commit

Permalink
Merge pull request #49 from changliao1025/development
Browse files Browse the repository at this point in the history
fix github action
  • Loading branch information
changliao1025 authored May 9, 2023
2 parents a0e04a4 + 66c968e commit c77aa9b
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 20 deletions.
70 changes: 54 additions & 16 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,62 @@ on:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Install packaging
run: |
pip install packaging
- name: Build package
run: python setup.py build_external

deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.HEXWATERSHED_TOKEN }}
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Install packaging
run: |
pip install packaging
- name: Install dependencies
run: |
pip install wheel
- name: Build package
run: python setup.py build_external

- name: Build wheel distribution
run: python setup.py bdist_wheel --universal

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.HEXWATERSHED_TOKEN }}
4 changes: 2 additions & 2 deletions meta.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package:
name: "hexwatershed"
version: "0.2.0"
version: "0.2.1"

source:
git_rev: v0.2.0
git_rev: v0.2.1
git_url: https://github.com/changliao1025/pyhexwatershed

build:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.0
current_version = 0.2.1
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
AUTHOR = "Chang Liao"
AUTHOR_EMAIL = "chang.liao@pnnl.gov"
URL = "https://github.com/changliao1025/pyhexwatershed"
VERSION = "0.2.0"
VERSION = "0.2.1"
REQUIRES_PYTHON = ">=3.8.0"
KEYWORDS = "hexwatershed hexagon"

Expand Down

0 comments on commit c77aa9b

Please sign in to comment.