Skip to content

5.3.0

5.3.0 #45

Workflow file for this run

name: pipeline release
on:
release:
types:
- created
jobs:
push_to_registry:
name: run tests + push pip package
runs-on: ubuntu-22.04
environment:
name: pypi
url: https://pypi.org/project/pypodo/
permissions:
id-token: write
steps:
- name: checkout the repo
uses: actions/checkout@v2
- name: install python3
uses: actions/setup-python@v2
#with:
# python-version: '3.11'
- name: update pip
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools
#installation
- name: install pypodo
run: |
pip install .
#test
- name: Launch test
uses: ./.github/actions/test
- name: install pep517
run: |
pip install pep517
- name: build pip
run: python3 -m pep517.build --source --binary --out-dir dist/ .
- name: publish to pypi
uses: pypa/gh-action-pypi-publish@release/v1
- name: Deduce relase
id: vars
run: echo ::set-output name=relase_tag::$(grep version setup.py | cut -d "\"" -f2)
- name: tweet
env:
CONSUMER_KEY: ${{ secrets.CONSUMER_KEY }}
CONSUMER_SECRET: ${{ secrets.CONSUMER_SECRET }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
ACCESS_TOKEN_SECRET: ${{ secrets.ACCESS_TOKEN_SECRET }}
VERSION: ${{ steps.vars.outputs.relase_tag }}
run: pip install twython && python .github/publish_tweet.py