From db4650370708d435d21575d7d78fff21e403dcc0 Mon Sep 17 00:00:00 2001 From: JooYoung Seo Date: Tue, 23 Jan 2024 22:03:13 -0600 Subject: [PATCH] ci: add semantic-release to gh workflow Fixes #4 --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b6b442f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +name: Semantic Release + +on: + schedule: + # Run every day at 12:00 PM UTC + - cron: '0 12 * * *' + +jobs: + release: + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' # Specify your Python version here + + - name: Install dependencies + run: | + pip install poetry + poetry install + + - name: Semantic Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} # Your PyPI username (usually __token__) + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} # Your PyPI API token + run: poetry run semantic-release publish