Skip to content

Commit 6561d06

Browse files
committed
Replace Travis CI with GitHub Actions
1 parent 55d1250 commit 6561d06

2 files changed

Lines changed: 29 additions & 8 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release Package
2+
3+
# need to setup:
4+
# secrets.PYPI_API_TOKEN (See: https://pypi.org/help/#apitoken)
5+
# secrets.TESTPYPI_API_TOKEN (See: https://test.pypi.org/help/#apitoken)
6+
7+
on:
8+
schedule:
9+
- cron: 0 0 * * *
10+
workflow_dispatch:
11+
12+
jobs:
13+
release:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install poetry
18+
run: pipx install poetry
19+
- uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.13'
22+
cache: poetry
23+
- name: Setup Poetry to publish
24+
run: |
25+
poetry install --no-interaction
26+
poetry config pypi-token.testpypi '${{ secrets.TESTPYPI_API_TOKEN }}'
27+
poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'
28+
- name: Publish package
29+
run: python publish.py

.travis.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)