diff --git a/.github/workflows/development_release.yml b/.github/workflows/development_release.yml index 5aa4cc0..8bc7700 100644 --- a/.github/workflows/development_release.yml +++ b/.github/workflows/development_release.yml @@ -1,48 +1,48 @@ -name: "development_release" - -on: - push: - branches: - - devb - tags: - - "v\*" - -jobs: - development-release: - name: "Development Release" - runs-on: "ubuntu-latest" - - steps: - - uses: actions/checkout@v2 - - - name: Set up Python 3.8. - uses: actions/setup-python@v2 - with: - python-version: 3.8 - - - name: Install Python BrainSpace. - run: | - python -m pip install --upgrade pip - python -m pip install --upgrade setuptools wheel - - - name: Build binary wheel and tarball. - run: | - python setup.py sdist bdist_wheel - -# - name: Create Github release. -# uses: "marvinpinto/action-automatic-releases@latest" +#name: "development_release" +# +#on: +# push: +# branches: +# - devb +# tags: +# - "v\*" +# +#jobs: +# development-release: +# name: "Development Release" +# runs-on: "ubuntu-latest" +# +# steps: +# - uses: actions/checkout@v2 +# +# - name: Set up Python 3.8. +# uses: actions/setup-python@v2 # with: -# repo_token: "${{ secrets.GITHUB_TOKEN }}" -# prerelease: false -# files: | -# LICENSE -# dist/* - -# - name: Publish to PyPi test. -# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') -# uses: pypa/gh-action-pypi-publish@release/v1 -# with: -# verbose: true -# skip_existing: true -# password: ${{ secrets.PYPI_TEST_API_TOKEN }} -# repository_url: https://test.pypi.org/legacy/ \ No newline at end of file +# python-version: 3.8 +# +# - name: Install Python BrainSpace. +# run: | +# python -m pip install --upgrade pip +# python -m pip install --upgrade setuptools wheel +# +# - name: Build binary wheel and tarball. +# run: | +# python setup.py sdist bdist_wheel +# +## - name: Create Github release. +## uses: "marvinpinto/action-automatic-releases@latest" +## with: +## repo_token: "${{ secrets.GITHUB_TOKEN }}" +## prerelease: false +## files: | +## LICENSE +## dist/* +# +## - name: Publish to PyPi test. +## if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') +## uses: pypa/gh-action-pypi-publish@release/v1 +## with: +## verbose: true +## skip_existing: true +## password: ${{ secrets.PYPI_TEST_API_TOKEN }} +## repository_url: https://test.pypi.org/legacy/ \ No newline at end of file diff --git a/.github/workflows/tagged_release.yml b/.github/workflows/tagged_release.yml index ad6d010..77f3229 100644 --- a/.github/workflows/tagged_release.yml +++ b/.github/workflows/tagged_release.yml @@ -1,33 +1,33 @@ -name: "tagged_release" +name: Tagged Release on: push: branches: - - master + - main tags: - - "v*" + - v* + jobs: - tagged-release: - name: "Tagged Release" - runs-on: "ubuntu-latest" + deploy: + + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - - name: Set up Python 3.8. - uses: actions/setup-python@v2 + - name: Set up Python 3.8 + uses: actions/setup-python@v3 with: python-version: 3.8 - - name: Install Python BrainSpace. + - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install --upgrade setuptools wheel + pip install build - - name: Build binary wheel and tarball. - run: | - python setup.py sdist bdist_wheel + - name: Build package + run: python -m build - name: Create Github release. uses: "marvinpinto/action-automatic-releases@latest" @@ -38,8 +38,9 @@ jobs: LICENSE dist/* - - name: Publish to PyPi. - uses: pypa/gh-action-pypi-publish@release/v1 + - name: Publish to PyPi + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 with: - password: ${{ secrets.PYPI_TOKEN }} - verbose: true \ No newline at end of file + user: __token__ + password: ${{ secrets.NEW_PYPI_API_TOKEN }} + verbose: true