Skip to content

Commit

Permalink
add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Sep 15, 2024
1 parent 243998f commit a54fa93
Showing 1 changed file with 25 additions and 31 deletions.
56 changes: 25 additions & 31 deletions .github/workflows/pypi-release.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,27 @@
# name: pypi-check-and-release
# TODO
name: pypi-release

# on:
# push:
# schedule:
# # Everyday at 3AM
# - cron: "0 3 * * *"
# workflow_dispatch:
on:
release:
types: [released]
workflow_dispatch:

# jobs:
# check-update-version-and-publish:
# runs-on: ubuntu-latest
# environment: production
# permissions:
# id-token: write
# steps:
# - uses: actions/checkout@v4
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version-file: "pyproject.toml"
# - name: Install uv
# uses: astral-sh/setup-uv@v2
# - name: Install dependencies
# run: uv sync
# - name: Build package
# # - name: Check moccasin version
# # run: continue-on-error: true
# # id: check_outdated
# run: uv build
# - name: Publish package
# uses: pypa/gh-action-pypi-publish@release/v1
jobs:
build-and-publish:
runs-on: ubuntu-latest
environment: production
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Install dependencies
run: uv sync
- name: Build package
run: uv build
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit a54fa93

Please sign in to comment.