Skip to content

Commit 064a00b

Browse files
author
Mark Bonicillo
authored
Create python-publish.yml
1 parent 1576ecc commit 064a00b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/python-publish.yml

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# This workflow will upload a Python Package using Twine when a release is created
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries
3+
4+
# This workflow uses actions that are not certified by GitHub.
5+
# They are provided by a third-party and are governed by
6+
# separate terms of service, privacy policy, and support
7+
# documentation.
8+
9+
name: Upload Python Package
10+
11+
on:
12+
release:
13+
types: [published]
14+
15+
permissions:
16+
contents: read
17+
18+
jobs:
19+
deploy:
20+
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
25+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
26+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
27+
- run: echo "Building wheel from tag ${{ github.ref_name }}"
28+
29+
- uses: actions/checkout@v3
30+
- name: Set up Python
31+
uses: actions/setup-python@v3
32+
with:
33+
python-version: '3.x'
34+
# - name: Install dependencies
35+
# run: |
36+
# python -m pip install --upgrade pip
37+
# pip install build
38+
# - name: Build package
39+
# run: python -m build
40+
# - name: Publish package
41+
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
42+
# with:
43+
# user: __token__
44+
# password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)