Bump version: 1.8.1 → 1.9.0 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [ '3.10' ] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pipenv' | |
- name: Install dependencies | |
run: | | |
python -m pip install -U pip pipenv wheel | |
pipenv sync --system --dev | |
- name: Release chinesecalendar | |
run: python setup.py sdist bdist_wheel | |
- name: Publish chinesecalendar | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.pypi_token }} | |
- name: Release chinese-calendar | |
run: | | |
sed -i 's/chinesecalendar/chinese_calendar/g' setup.py | |
python setup.py sdist bdist_wheel | |
- name: Publish chinese-calendar | |
uses: pypa/gh-action-pypi-publish@master | |
with: | |
password: ${{ secrets.pypi_token }} |