From 8affa5df08209129d2f6409a5c1f5dc96c411a62 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 17:44:36 +0200 Subject: [PATCH 01/30] publish --- .github/workflows/python-publish.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/python-publish.yml diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..fe4a502 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,35 @@ +# This workflows will upload a Python Package using Twine when a release is created +# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries + +name: Upload Python Package + +on: + release: + types: [created] + +jobs: + deploy: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + - name: Test + run: | + cd test && python test.py + - name: Build and publish + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: | + python setup.py sdist bdist_wheel + twine upload dist/* From a2f4563ab5c71c732a2cc463c36802f2485230b2 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 20:38:17 +0200 Subject: [PATCH 02/30] correct test folder --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index fe4a502..2e59b7e 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,7 +25,7 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test run: | - cd test && python test.py + cd tests && python test.py - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} From 1697518b10c5a0aed93b7e1ac49b215374eb7323 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 20:44:15 +0200 Subject: [PATCH 03/30] test filename --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 2e59b7e..ae72281 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -25,7 +25,7 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Test run: | - cd tests && python test.py + cd tests && python test.py annotated_tomato_150.100000.vcf.gz.tbi - name: Build and publish env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} From 9f9d25047586e30d5a3aac212407965f6e863304 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 20:50:23 +0200 Subject: [PATCH 04/30] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index be58c9d..d53c78c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,10 @@ tabixpy Tabix parser writtern in Python3. +CI +-- +![Upload Python Package](https://github.com/bejobioinformatics/tabixpy/workflows/Upload%20Python%20Package/badge.svg) + Install ------- @@ -158,4 +162,4 @@ Uncompressed 15K annotated_tomato_150.100000.vcf.gz.tbj 727K annotated_tomato_150.vcf.bgz.tbi 8.4M annotated_tomato_150.vcf.bgz.tbj -``` \ No newline at end of file +``` From 4317d6c595db6310f27f16c65c37abbd43e92bdf Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 21:54:57 +0200 Subject: [PATCH 05/30] with tasks --- .github/workflows/python-publish.yml | 57 ++++++++++++++++++++++++---- 1 file changed, 50 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ae72281..9733cec 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,10 +8,8 @@ on: types: [created] jobs: - deploy: - + install: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 - name: Set up Python @@ -23,13 +21,58 @@ jobs: python -m pip install --upgrade pip pip install setuptools wheel twine if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + test: + runs-on: ubuntu-latest + needs: install + steps: - name: Test run: | cd tests && python test.py annotated_tomato_150.100000.vcf.gz.tbi - - name: Build and publish + + build: + runs-on: ubuntu-latest + needs: test + steps: + - name: Build Release + run: python setup.py sdist bdist_wheel + + upload: + runs-on: ubuntu-latest + needs: build + steps: + - name: Upload Release Asset - wheel + id: upload-release-asset-wheel + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl + FILETYPE: application/x-pywheel+zip + with: + upload_url: https://uploads.github.com/repos/${{ GITHUB_REPOSITORY }}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} + asset_name: ${{ OUTFILE }} + asset_content_type: ${{ FILETYPE }} + + - name: Upload Release Asset - src + id: upload-release-asset-src + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OUTFILE: tabixpy-${{ github.ref }}.tar.gz + FILETYPE: application/tar+gzip + with: + upload_url: https://uploads.github.com/repos/${{ GITHUB_REPOSITORY }}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} + asset_name: ${{ OUTFILE }} + asset_content_type: ${{ FILETYPE }} + + publish: + runs-on: ubuntu-latest + needs: upload + steps: + - name: Publish release env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload dist/* + run: twine upload dist/* From e4939397b46d8d7116a7ee3187d1eb44ae403607 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:08:22 +0200 Subject: [PATCH 06/30] fail fast --- .github/workflows/python-publish.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9733cec..a81df24 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -10,6 +10,9 @@ on: jobs: install: runs-on: ubuntu-latest + continue-on-error: false + strategy: + fail-fast: true steps: - uses: actions/checkout@v2 - name: Set up Python @@ -23,23 +26,32 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi test: - runs-on: ubuntu-latest needs: install + runs-on: ubuntu-latest + continue-on-error: false + strategy: + fail-fast: true steps: - name: Test run: | cd tests && python test.py annotated_tomato_150.100000.vcf.gz.tbi build: - runs-on: ubuntu-latest needs: test + runs-on: ubuntu-latest + continue-on-error: false + strategy: + fail-fast: true steps: - name: Build Release run: python setup.py sdist bdist_wheel upload: - runs-on: ubuntu-latest needs: build + runs-on: ubuntu-latest + continue-on-error: false + strategy: + fail-fast: true steps: - name: Upload Release Asset - wheel id: upload-release-asset-wheel @@ -68,8 +80,11 @@ jobs: asset_content_type: ${{ FILETYPE }} publish: - runs-on: ubuntu-latest needs: upload + runs-on: ubuntu-latest + continue-on-error: false + strategy: + fail-fast: true steps: - name: Publish release env: From c56c28a5771a7b8078b2a390a46de20bed818952 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:19:53 +0200 Subject: [PATCH 07/30] trying needs.result --- .github/workflows/python-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a81df24..271036e 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -27,6 +27,7 @@ jobs: test: needs: install +# if: needs.install.result == "success" runs-on: ubuntu-latest continue-on-error: false strategy: From 8652ad84c4aa75f5391144d6f532e2504d837009 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:23:21 +0200 Subject: [PATCH 08/30] GITHUB_REPOSITORY --- .github/workflows/python-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 271036e..3bb1d29 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -62,7 +62,7 @@ jobs: OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl FILETYPE: application/x-pywheel+zip with: - upload_url: https://uploads.github.com/repos/${{ GITHUB_REPOSITORY }}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} asset_name: ${{ OUTFILE }} asset_content_type: ${{ FILETYPE }} @@ -75,7 +75,7 @@ jobs: OUTFILE: tabixpy-${{ github.ref }}.tar.gz FILETYPE: application/tar+gzip with: - upload_url: https://uploads.github.com/repos/${{ GITHUB_REPOSITORY }}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} asset_name: ${{ OUTFILE }} asset_content_type: ${{ FILETYPE }} From f69e1861b0ba0835d33fd269b4d5eb64d7184c55 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:25:49 +0200 Subject: [PATCH 09/30] env vars --- .github/workflows/python-publish.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3bb1d29..b1ce984 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -62,10 +62,10 @@ jobs: OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl FILETYPE: application/x-pywheel+zip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} - asset_name: ${{ OUTFILE }} - asset_content_type: ${{ FILETYPE }} + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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/${OUTFILE} + asset_name: ${OUTFILE} + asset_content_type: ${FILETYPE} - name: Upload Release Asset - src id: upload-release-asset-src @@ -75,10 +75,10 @@ jobs: OUTFILE: tabixpy-${{ github.ref }}.tar.gz FILETYPE: application/tar+gzip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${{ OUTFILE }} # 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/${{ OUTFILE }} - asset_name: ${{ OUTFILE }} - asset_content_type: ${{ FILETYPE }} + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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/${OUTFILE} + asset_name: ${OUTFILE} + asset_content_type: ${FILETYPE} publish: needs: upload From 5d2ad44fafa648df787bea36bbd6b2f97edb720f Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:43:44 +0200 Subject: [PATCH 10/30] persisting assets --- .github/workflows/python-publish.yml | 129 ++++++++++++++++----------- 1 file changed, 77 insertions(+), 52 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b1ce984..83c46e9 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,34 +8,22 @@ on: types: [created] jobs: - install: - runs-on: ubuntu-latest - continue-on-error: false - strategy: - fail-fast: true - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.x' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - test: - needs: install # if: needs.install.result == "success" runs-on: ubuntu-latest continue-on-error: false strategy: fail-fast: true steps: - - name: Test - run: | - cd tests && python test.py annotated_tomato_150.100000.vcf.gz.tbi + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Test + run: cd tests && python test.py annotated_tomato_150.100000.vcf.gz.tbi build: needs: test @@ -44,8 +32,27 @@ jobs: strategy: fail-fast: true steps: - - name: Build Release - run: python setup.py sdist bdist_wheel + - uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel twine + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Build Release + run: python setup.py sdist bdist_wheel + + - name: upload build + uses: actions/upload-artifact@v1 + with: + name: build + path: build/* upload: needs: build @@ -54,31 +61,36 @@ jobs: strategy: fail-fast: true steps: - - name: Upload Release Asset - wheel - id: upload-release-asset-wheel - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl - FILETYPE: application/x-pywheel+zip - with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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/${OUTFILE} - asset_name: ${OUTFILE} - asset_content_type: ${FILETYPE} + - name: Download data + uses: actions/download-artifact@v1 + with: + name: build + + - name: Upload Release Asset - wheel + id: upload-release-asset-wheel + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl + FILETYPE: application/x-pywheel+zip + with: + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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: ${OUTFILE} + asset_name: ${OUTFILE} + asset_content_type: ${FILETYPE} - - name: Upload Release Asset - src - id: upload-release-asset-src - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ github.ref }}.tar.gz - FILETYPE: application/tar+gzip - with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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/${OUTFILE} - asset_name: ${OUTFILE} - asset_content_type: ${FILETYPE} + - name: Upload Release Asset - src + id: upload-release-asset-src + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OUTFILE: tabixpy-${{ github.ref }}.tar.gz + FILETYPE: application/tar+gzip + with: + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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: ${OUTFILE} + asset_name: ${OUTFILE} + asset_content_type: ${FILETYPE} publish: needs: upload @@ -87,8 +99,21 @@ jobs: strategy: fail-fast: true steps: - - name: Publish release - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload dist/* + - name: Download data + uses: actions/download-artifact@v1 + with: + name: build + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: pip install twine + + - name: Publish release + env: + TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} + TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + run: twine upload tabixpy-${{ github.ref }}* From e8c343e205636c2858ba344b97901c4cf7cb1846 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:51:01 +0200 Subject: [PATCH 11/30] upload path --- .github/workflows/python-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 83c46e9..9eee155 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -49,10 +49,10 @@ jobs: run: python setup.py sdist bdist_wheel - name: upload build - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v2 with: name: build - path: build/* + path: build/ upload: needs: build @@ -62,7 +62,7 @@ jobs: fail-fast: true steps: - name: Download data - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v2 with: name: build @@ -100,7 +100,7 @@ jobs: fail-fast: true steps: - name: Download data - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v2 with: name: build From e7e7026a35ca1e00481ec9962396e403e745d819 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 22:54:36 +0200 Subject: [PATCH 12/30] dist instead of build --- .github/workflows/python-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9eee155..cc66d79 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -51,8 +51,8 @@ jobs: - name: upload build uses: actions/upload-artifact@v2 with: - name: build - path: build/ + name: dist + path: dist/ upload: needs: build @@ -64,7 +64,7 @@ jobs: - name: Download data uses: actions/download-artifact@v2 with: - name: build + name: dist - name: Upload Release Asset - wheel id: upload-release-asset-wheel @@ -102,7 +102,7 @@ jobs: - name: Download data uses: actions/download-artifact@v2 with: - name: build + name: dist - name: Set up Python uses: actions/setup-python@v2 From 09a8de6e1c7b3653842f948ebea899b4c68c072b Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:04:26 +0200 Subject: [PATCH 13/30] correct tag --- .github/workflows/python-publish.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index cc66d79..1f4911c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -65,16 +65,21 @@ jobs: uses: actions/download-artifact@v2 with: name: dist + + - name: Get tag + id: get_tag + run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3) - name: Upload Release Asset - wheel id: upload-release-asset-wheel uses: actions/upload-release-asset@v1 env: + TAG: ${{ steps.get_tag.outputs.TAG }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ github.ref }}-py3-none-any.whl + OUTFILE: tabixpy-${{ steps.get_tag.outputs.TAG }}-py3-none-any.whl FILETYPE: application/x-pywheel+zip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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: ${OUTFILE} asset_name: ${OUTFILE} asset_content_type: ${FILETYPE} @@ -83,11 +88,12 @@ jobs: id: upload-release-asset-src uses: actions/upload-release-asset@v1 env: + TAG: ${{ steps.get_tag.outputs.TAG }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ github.ref }}.tar.gz + OUTFILE: tabixpy-${{ steps.get_tag.outputs.TAG }}.tar.gz FILETYPE: application/tar+gzip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ github.ref }}/assets?name=${OUTFILE} # 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: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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: ${OUTFILE} asset_name: ${OUTFILE} asset_content_type: ${FILETYPE} @@ -116,4 +122,4 @@ jobs: env: TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: twine upload tabixpy-${{ github.ref }}* + run: twine upload tabixpy-* From 9264c0eb10897ec7ec68e45bd11f6901f97fda9c Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:19:00 +0200 Subject: [PATCH 14/30] version file --- .github/workflows/python-publish.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 1f4911c..df2e9ef 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -4,12 +4,17 @@ name: Upload Python Package on: + push: + # Sequence of patterns matched against refs/tags + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 release: types: [created] + tags: + - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 jobs: test: -# if: needs.install.result == "success" runs-on: ubuntu-latest continue-on-error: false strategy: @@ -42,7 +47,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine + pip install setuptools wheel if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Build Release @@ -69,14 +74,19 @@ jobs: - name: Get tag id: get_tag run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3) - + + - name: Get version + id: get_version + run: echo ::set-output name=VERSION::$(cat VERSION) + - name: Upload Release Asset - wheel id: upload-release-asset-wheel uses: actions/upload-release-asset@v1 env: TAG: ${{ steps.get_tag.outputs.TAG }} + VERSION: ${{ steps.get_version.outputs.VERSION }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ steps.get_tag.outputs.TAG }}-py3-none-any.whl + OUTFILE: tabixpy-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl FILETYPE: application/x-pywheel+zip with: upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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 @@ -89,8 +99,9 @@ jobs: uses: actions/upload-release-asset@v1 env: TAG: ${{ steps.get_tag.outputs.TAG }} + VERSION: ${{ steps.get_version.outputs.VERSION }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ steps.get_tag.outputs.TAG }}.tar.gz + OUTFILE: tabixpy-${{ steps.get_version.outputs.VERSION }}.tar.gz FILETYPE: application/tar+gzip with: upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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 From aebe18a6372b470621a0e005f4ec7565adce8679 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:19:26 +0200 Subject: [PATCH 15/30] Create VERSION --- VERSION | 1 + 1 file changed, 1 insertion(+) create mode 100644 VERSION diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..d3827e7 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +1.0 From acc5c9ac396789a496bfe48fe247c3dc4e9fa198 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:22:32 +0200 Subject: [PATCH 16/30] upload version file --- .github/workflows/python-publish.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index df2e9ef..f35be3c 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -53,6 +53,9 @@ jobs: - name: Build Release run: python setup.py sdist bdist_wheel + - name: Copy version + run: cp VERSION dist/VERSION + - name: upload build uses: actions/upload-artifact@v2 with: From 5e631585d80b49c39b16db72f6fbc2694cd6850e Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:31:33 +0200 Subject: [PATCH 17/30] with statement does not use env variables --- .github/workflows/python-publish.yml | 30 +++++++++++++++------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f35be3c..d8982d9 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -81,36 +81,38 @@ jobs: - name: Get version id: get_version run: echo ::set-output name=VERSION::$(cat VERSION) + + - name: Set wheel + id: set_wheel + run: echo ::set-output name=NAME::$(echo tabixpy-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl) + + - name: Set src + id: set_src + run: echo ::set-output name=NAME::$(echo tabixpy-${{ steps.get_version.outputs.VERSION }}.tar.gz) - name: Upload Release Asset - wheel id: upload-release-asset-wheel uses: actions/upload-release-asset@v1 env: - TAG: ${{ steps.get_tag.outputs.TAG }} - VERSION: ${{ steps.get_version.outputs.VERSION }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl FILETYPE: application/x-pywheel+zip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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: ${OUTFILE} - asset_name: ${OUTFILE} - asset_content_type: ${FILETYPE} + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.get_tag.outputs.TAG }}/assets?name=${{ steps.set_wheel.outputs.NAME }} + asset_path: ${{ steps.set_wheel.outputs.NAME }} + asset_name: ${{ steps.set_wheel.outputs.NAME }} + asset_content_type: ${{ steps.set_wheel.outputs.NAME }} - name: Upload Release Asset - src id: upload-release-asset-src uses: actions/upload-release-asset@v1 env: - TAG: ${{ steps.get_tag.outputs.TAG }} - VERSION: ${{ steps.get_version.outputs.VERSION }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - OUTFILE: tabixpy-${{ steps.get_version.outputs.VERSION }}.tar.gz FILETYPE: application/tar+gzip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG}/assets?name=${OUTFILE} # 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: ${OUTFILE} - asset_name: ${OUTFILE} - asset_content_type: ${FILETYPE} + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.get_tag.outputs.TAG }}/assets?name=${{ steps.set_src.outputs.NAME }} + asset_path: ${{ steps.set_src.outputs.NAME }} + asset_name: ${{ steps.set_src.outputs.NAME }} + asset_content_type: ${{ steps.set_src.outputs.NAME }} publish: needs: upload From 0501e369bc793bd4bdcabe871f1792f2c0d40b68 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:34:15 +0200 Subject: [PATCH 18/30] Update python-publish.yml --- .github/workflows/python-publish.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d8982d9..a46c5fb 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -4,10 +4,10 @@ name: Upload Python Package on: - push: - # Sequence of patterns matched against refs/tags - tags: - - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 +# push: +# # Sequence of patterns matched against refs/tags +# tags: +# - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 release: types: [created] tags: From 6f461c19971bfaec47c88e8b01e1604a2d5ce514 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:35:13 +0200 Subject: [PATCH 19/30] Update setup.py --- setup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 009282a..dda3736 100644 --- a/setup.py +++ b/setup.py @@ -1,11 +1,15 @@ import setuptools -with open("README.md", "r") as fh: +with open("README.md", "rt") as fh: long_description = fh.read() +with open("VERSION", "rt") as fh: + version = fh.read() + + setuptools.setup( name="tabixpy", # Replace with your own username - version="1", + version=version, author="Saulo Aflitos", author_email="saulobejo@users.noreply.github.com", description="Tabix reader written 100% in Python", From 7b7820db16bf7e7f4a0d817a90686b79080ff646 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:46:20 +0200 Subject: [PATCH 20/30] asset path and type --- .github/workflows/python-publish.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a46c5fb..42c4d13 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -95,24 +95,22 @@ jobs: uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FILETYPE: application/x-pywheel+zip with: upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.get_tag.outputs.TAG }}/assets?name=${{ steps.set_wheel.outputs.NAME }} - asset_path: ${{ steps.set_wheel.outputs.NAME }} + asset_path: ./${{ steps.set_wheel.outputs.NAME }} asset_name: ${{ steps.set_wheel.outputs.NAME }} - asset_content_type: ${{ steps.set_wheel.outputs.NAME }} + asset_content_type: application/x-pywheel+zip - name: Upload Release Asset - src id: upload-release-asset-src uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - FILETYPE: application/tar+gzip with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.get_tag.outputs.TAG }}/assets?name=${{ steps.set_src.outputs.NAME }} - asset_path: ${{ steps.set_src.outputs.NAME }} + upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases//assets?name=${{ steps.set_src.outputs.NAME }} + asset_path: ./${{ steps.set_src.outputs.NAME }} asset_name: ${{ steps.set_src.outputs.NAME }} - asset_content_type: ${{ steps.set_src.outputs.NAME }} + asset_content_type: application/tar+gzip publish: needs: upload From 41bcb5dddeaea9343c80742d312caeb8f1473f2c Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Thu, 11 Jun 2020 23:57:16 +0200 Subject: [PATCH 21/30] all variables in one step --- .github/workflows/python-publish.yml | 38 +++++++++++++--------------- 1 file changed, 17 insertions(+), 21 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 42c4d13..59ce5e6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -74,21 +74,17 @@ jobs: with: name: dist - - name: Get tag - id: get_tag - run: echo ::set-output name=TAG::$(echo $GITHUB_REF | cut -d / -f 3) - - - name: Get version - id: get_version - run: echo ::set-output name=VERSION::$(cat VERSION) - - - name: Set wheel - id: set_wheel - run: echo ::set-output name=NAME::$(echo tabixpy-${{ steps.get_version.outputs.VERSION }}-py3-none-any.whl) - - - name: Set src - id: set_src - run: echo ::set-output name=NAME::$(echo tabixpy-${{ steps.get_version.outputs.VERSION }}.tar.gz) + - name: Gen Vars + id: vars + run: | + export TAG=$(echo $GITHUB_REF | cut -d / -f 3) + export VERSION=$(cat VERSION) + echo ::set-output name=TAG::$(echo $TAG) + echo ::set-output name=VERSION::$(echo $VERSION) + echo ::set-output name=WHEEL::$(echo tabixpy-$VERSION-py3-none-any.whl) + echo ::set-output name=SRC::$(echo tabixpy-$VERSION.tar.gz) + echo ::set-output name=REPO::$(echo ${GITHUB_REPOSITORY}) + echo ::set-output name=URL::https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG} - name: Upload Release Asset - wheel id: upload-release-asset-wheel @@ -96,9 +92,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${{ steps.get_tag.outputs.TAG }}/assets?name=${{ steps.set_wheel.outputs.NAME }} - asset_path: ./${{ steps.set_wheel.outputs.NAME }} - asset_name: ${{ steps.set_wheel.outputs.NAME }} + upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.WHEEL }} + asset_path: ./${{ steps.vars.outputs.WHEEL }} + asset_name: ${{ steps.vars.outputs.WHEEL }} asset_content_type: application/x-pywheel+zip - name: Upload Release Asset - src @@ -107,9 +103,9 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases//assets?name=${{ steps.set_src.outputs.NAME }} - asset_path: ./${{ steps.set_src.outputs.NAME }} - asset_name: ${{ steps.set_src.outputs.NAME }} + upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.SRC }} + asset_path: ./${{ steps.vars.outputs.SRC }} + asset_name: ${{ steps.vars.outputs.SRC }} asset_content_type: application/tar+gzip publish: From f37fd2b1b9bd5fbdeb67ea638fe461041cd54d51 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:03:48 +0200 Subject: [PATCH 22/30] {?name,label} --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 59ce5e6..fc9c983 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -92,7 +92,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.WHEEL }} + upload_url: ${{ steps.vars.outputs.URL }}/assets{?name,label} asset_path: ./${{ steps.vars.outputs.WHEEL }} asset_name: ${{ steps.vars.outputs.WHEEL }} asset_content_type: application/x-pywheel+zip From 5d520dfaf89ae2959982cfd59ab9d94d2492abe4 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:07:34 +0200 Subject: [PATCH 23/30] ls -la --- .github/workflows/python-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index fc9c983..ec80647 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -85,6 +85,7 @@ jobs: echo ::set-output name=SRC::$(echo tabixpy-$VERSION.tar.gz) echo ::set-output name=REPO::$(echo ${GITHUB_REPOSITORY}) echo ::set-output name=URL::https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG} + ls -la - name: Upload Release Asset - wheel id: upload-release-asset-wheel From 8acfa63c8a9d4ef0990db3af803a7b39e7657355 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:09:44 +0200 Subject: [PATCH 24/30] realtive path --- .github/workflows/python-publish.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index ec80647..d843e8d 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -94,7 +94,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.vars.outputs.URL }}/assets{?name,label} - asset_path: ./${{ steps.vars.outputs.WHEEL }} + asset_path: ${{ steps.vars.outputs.WHEEL }} asset_name: ${{ steps.vars.outputs.WHEEL }} asset_content_type: application/x-pywheel+zip @@ -105,7 +105,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.SRC }} - asset_path: ./${{ steps.vars.outputs.SRC }} + asset_path: ${{ steps.vars.outputs.SRC }} asset_name: ${{ steps.vars.outputs.SRC }} asset_content_type: application/tar+gzip From a0a3868511eb4f71e79a35fc38c50123b8897d8c Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:15:11 +0200 Subject: [PATCH 25/30] use hub --- .github/workflows/python-publish.yml | 42 ++++++++++++++++------------ 1 file changed, 24 insertions(+), 18 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d843e8d..f32ac5a 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -87,27 +87,33 @@ jobs: echo ::set-output name=URL::https://uploads.github.com/repos/${GITHUB_REPOSITORY}/releases/${TAG} ls -la - - name: Upload Release Asset - wheel - id: upload-release-asset-wheel - uses: actions/upload-release-asset@v1 + - name: Upload Release Assets env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.vars.outputs.URL }}/assets{?name,label} - asset_path: ${{ steps.vars.outputs.WHEEL }} - asset_name: ${{ steps.vars.outputs.WHEEL }} - asset_content_type: application/x-pywheel+zip + run: + hub release create -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" -m "${{ steps.vars.outputs.TAG }}" "${{ steps.vars.outputs.TAG }}" - - name: Upload Release Asset - src - id: upload-release-asset-src - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.SRC }} - asset_path: ${{ steps.vars.outputs.SRC }} - asset_name: ${{ steps.vars.outputs.SRC }} - asset_content_type: application/tar+gzip +# - name: Upload Release Asset - wheel +# id: upload-release-asset-wheel +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.vars.outputs.URL }}/assets{?name,label} +# asset_path: ${{ steps.vars.outputs.WHEEL }} +# asset_name: ${{ steps.vars.outputs.WHEEL }} +# asset_content_type: application/x-pywheel+zip + +# - name: Upload Release Asset - src +# id: upload-release-asset-src +# uses: actions/upload-release-asset@v1 +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# with: +# upload_url: ${{ steps.vars.outputs.URL }}/assets?name=${{ steps.vars.outputs.SRC }} +# asset_path: ${{ steps.vars.outputs.SRC }} +# asset_name: ${{ steps.vars.outputs.SRC }} +# asset_content_type: application/tar+gzip publish: needs: upload From 8da9626600e372488346e3b45e9f492b5a6aaa70 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:18:02 +0200 Subject: [PATCH 26/30] checkout first --- .github/workflows/python-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index f32ac5a..53e7a33 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -69,6 +69,8 @@ jobs: strategy: fail-fast: true steps: + - uses: actions/checkout@v2 + - name: Download data uses: actions/download-artifact@v2 with: From e3692c8ee9c20a6c9cc07f29ba65f639e8ed7745 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:23:24 +0200 Subject: [PATCH 27/30] edit release --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 53e7a33..5af23f3 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -93,7 +93,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: - hub release create -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" -m "${{ steps.vars.outputs.TAG }}" "${{ steps.vars.outputs.TAG }}" + hub release edit -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" -m "${{ steps.vars.outputs.TAG }}" # - name: Upload Release Asset - wheel # id: upload-release-asset-wheel From bb4fef23ab1e69b28b9e450d54c0d74756838850 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:25:04 +0200 Subject: [PATCH 28/30] fix typo --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 5af23f3..4c2a249 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -93,7 +93,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: - hub release edit -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" -m "${{ steps.vars.outputs.TAG }}" + hub release edit -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" "${{ steps.vars.outputs.TAG }}" # - name: Upload Release Asset - wheel # id: upload-release-asset-wheel From 8ec9447a147547ad2248d53cb8db3b751e95fe01 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:27:10 +0200 Subject: [PATCH 29/30] message --- .github/workflows/python-publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 4c2a249..a9eea67 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -93,7 +93,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: - hub release edit -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" "${{ steps.vars.outputs.TAG }}" + hub release edit -a "${{ steps.vars.outputs.WHEEL }}" -a "${{ steps.vars.outputs.SRC }}" -m "" "${{ steps.vars.outputs.TAG }}" # - name: Upload Release Asset - wheel # id: upload-release-asset-wheel From 43c21cb6ee6fe7bb9b5cada7f0f2c061e3247aa2 Mon Sep 17 00:00:00 2001 From: Saulo Aflitos Date: Fri, 12 Jun 2020 00:30:17 +0200 Subject: [PATCH 30/30] Update VERSION --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index d3827e7..9459d4b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0 +1.1