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.
2 parents b3354d7 + d5dad3b commit 1a0a232Copy full SHA for 1a0a232
.github/workflows/publish.yml
@@ -0,0 +1,31 @@
1
+name: publish
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
+ workflow_dispatch:
7
8
+jobs:
9
+ pypi-publish:
10
+ name: Publish release to PyPI
11
+ runs-on: ubuntu-latest
12
+ environment:
13
+ name: pypi
14
+ url: https://pypi.org/p/climate-aware-task-scheduler
15
+ permissions:
16
+ id-token: write
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - name: Set up Python
20
+ uses: actions/setup-python@v5
21
+ with:
22
+ python-version: '3.10'
23
+ - name: Install dependencies
24
+ run: |
25
+ python -m pip install --upgrade pip
26
+ python -m pip install build
27
+ - name: Build package
28
29
+ python -m build
30
+ - name: Publish package distributions to PyPI
31
+ uses: pypa/gh-action-pypi-publish@release/v1
0 commit comments