diff --git a/.github/workflows/release_and_publish.yml b/.github/workflows/release_and_publish.yml index e1aad143..284480ac 100644 --- a/.github/workflows/release_and_publish.yml +++ b/.github/workflows/release_and_publish.yml @@ -32,7 +32,7 @@ jobs: - name: run Changelog run: | - jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=-1 --ExecutePreprocessor.kernel_name=python3 tools/gitcount.ipynb + jupyter nbconvert --to notebook --execute --inplace --ExecutePreprocessor.timeout=-1 --ExecutePreprocessor.kernel_name=python3 tools/gitcount.ipynb - name: cat Changelog uses: pCYSl5EDgo/cat@master @@ -42,38 +42,49 @@ jobs: env: TEXT: ${{ steps.changetxt.outputs.text }} - - name: create release - id: create_release - uses: actions/create-release@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # token is provided by GHA, DO NOT create + - name: Release + uses: softprops/action-gh-release@v1 with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} body: ${{ steps.changetxt.outputs.text }} - draft: false - prerelease: false - - - name: get asset name - run: | - export PKG=$(ls dist/) - set -- $PKG - echo "name=$1" >> $GITHUB_ENV - - - name: upload release asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + body_path: ${{ steps.changetxt.outputs.path }} + name: Release ${{ github.ref }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps - asset_path: dist/${{ env.name }} - asset_name: ${{ env.name }} - asset_content_type: application/zip + + #- name: create release + # id: create_release + # uses: actions/create-release@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # token is provided by GHA, DO NOT create + # with: + # tag_name: ${{ github.ref }} + # release_name: Release ${{ github.ref }} + # body: ${{ steps.changetxt.outputs.text }} + # draft: false + # prerelease: false + # + #- name: get asset name + # run: | + # export PKG=$(ls dist/) + # set -- $PKG + # echo "name=$1" >> $GITHUB_ENV + # + #- name: upload release asset + # id: upload-release-asset + # uses: actions/upload-release-asset@v1 + # env: + # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + # with: + # # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs + # # object, which include a `upload_url`. See this blog post for more info: + # # https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps + # upload_url: ${{ steps.create_release.outputs.upload_url }} + # asset_path: dist/${{ env.name }} + # asset_name: ${{ env.name }} + # asset_content_type: application/zip - name: publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@master with: user: __token__ password: ${{ secrets.PYPI_PASSWORD }} - diff --git a/spaghetti/__init__.py b/spaghetti/__init__.py index e4d74100..336c5f92 100644 --- a/spaghetti/__init__.py +++ b/spaghetti/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.6.0" +__version__ = "1.6.0.post1" """ # `spaghetti` --- Spatial Graphs: Networks, Topology, & Inference