-
Notifications
You must be signed in to change notification settings - Fork 188
40 lines (37 loc) · 1.05 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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 }}