Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Commit

Permalink
prepare release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pauleve committed May 27, 2021
1 parent 7b9e664 commit 7de0b58
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Packaging

on:
release:
types: [created]

jobs:
pypi-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sed -i "s:9999:${VERSION//*v/}:" setup.py conda/meta.yaml
env:
VERSION: ${{ github.ref }}
- uses: actions/setup-python@v1
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- 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/*
conda-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: sed -i "s:9999:${VERSION//*v/}:" setup.py conda/meta.yaml
env:
VERSION: ${{ github.ref }}
- uses: s-weigand/setup-conda@v1
- name: prepare
run: |
conda install -y anaconda-client conda-build conda-verify
conda config --set channel_priority strict
conda config --set anaconda_upload yes
- name: build
run: |
cd conda
conda build --user colomoto --token $ANACONDA_TOKEN -c defaults -c conda-forge -c colomoto .
env:
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from setuptools import setup

NAME = "profile_binr"
VERSION = "0.1.0"
VERSION = "9999"

setup(
name=NAME,
Expand Down

0 comments on commit 7de0b58

Please sign in to comment.