We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 224d95f commit c51f5b1Copy full SHA for c51f5b1
.github/workflows/publish.yml
@@ -0,0 +1,32 @@
1
+name: Publish to GitHub Packages
2
+
3
+on:
4
+ workflow_dispatch:
5
6
+jobs:
7
+ publish:
8
+ runs-on: ubuntu-latest
9
10
+ steps:
11
+ - name: Checkout code
12
+ uses: actions/checkout@v4
13
14
+ - name: Set up Python
15
+ uses: actions/setup-python@v4
16
+ with:
17
+ python-version: "3.8"
18
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install build twine
23
24
+ - name: Build package
25
26
+ python -m build
27
28
+ - name: Publish to GitHub Packages
29
+ env:
30
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31
32
+ python -m twine upload --repository-url https://upload.pkg.github.com/${{ github.repository }}/ dist/*
0 commit comments