Skip to content

Commit

Permalink
Merge pull request #7 from q-m/feature/3-release-workflow
Browse files Browse the repository at this point in the history
#3 Add release workflow
  • Loading branch information
leewesleyv authored Oct 21, 2024
2 parents fae7997 + 4c53092 commit 93ef8c9
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release to test PyPI

on:
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
environment: release

permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install build dependencies
run: pip install build

- name: Build distribution
run: python -m build

- name: Publish
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
release:
types:
- created

jobs:
publish:
runs-on: ubuntu-latest
environment: release

permissions:
id-token: write

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.8"

- name: Install build dependencies
run: pip install build

- name: Build distribution
run: python -m build

- name: Publish
uses: pypa/[email protected]

0 comments on commit 93ef8c9

Please sign in to comment.