Skip to content

Commit 57ae30d

Browse files
committed
WIP
1 parent 92fa7e1 commit 57ae30d

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish to PyPI
2+
on:
3+
push:
4+
tags:
5+
- test-v*
6+
jobs:
7+
build-and-publish:
8+
runs-on: ubuntu-latest
9+
environment:
10+
name: pypi
11+
url: 'https://pypi.org/p/pypi-browser-webapp'
12+
permissions:
13+
id-token: write
14+
steps:
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.13'
19+
- name: Install dependencies
20+
run: pip install build
21+
- name: Build Python artifacts
22+
run: python -m build --sdist --wheel --outdir dist
23+
- name: Publish to PyPI
24+
uses: pypa/gh-action-pypi-publish@release/v1
25+
with:
26+
skip-existing: true
27+
# - name: Login to GitHub Container Registry
28+
# uses: docker/login-action@v2
29+
# with:
30+
# registry: ghcr.io
31+
# username: ${{ github.actor }}
32+
# password: ${{ secrets.GITHUB_TOKEN }}
33+
# - name: Build and push Docker image
34+
# uses: docker/build-push-action@v4
35+
# with:
36+
# tags: 'ghcr.io/chriskuehl/fluffy-server:latest,ghcr.io/chriskuehl/fluffy-server:${{ github.ref_name }}'
37+
# push: true

0 commit comments

Comments
 (0)