Skip to content

Commit

Permalink
fix tagged release action
Browse files Browse the repository at this point in the history
  • Loading branch information
oualidbenkarim authored and oualidbenkarim committed Dec 19, 2022
1 parent 9e1fe38 commit 5ee9eb0
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 65 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/development_release.yml
Original file line number Diff line number Diff line change
@@ -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/
# 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/
37 changes: 19 additions & 18 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
user: __token__
password: ${{ secrets.NEW_PYPI_API_TOKEN }}
verbose: true

0 comments on commit 5ee9eb0

Please sign in to comment.