Skip to content

Commit 00f9c3a

Browse files
committed
Adding a workflow for managing releases
1 parent cd5d441 commit 00f9c3a

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/release.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
env:
9+
COLUMNS: 120
10+
11+
jobs:
12+
call_run_ci:
13+
uses: ./.github/workflows/ci.yaml
14+
15+
release:
16+
needs: call_run_ci
17+
runs-on: ubuntu-24.04
18+
permissions:
19+
id-token: write
20+
environment:
21+
name: testpypi
22+
url: https://test.pypi.org/p/cite-runner
23+
steps:
24+
- name: "Download artifact"
25+
uses: actions/download-artifact@v4
26+
with:
27+
name: ${{ needs.call_run_ci.outputs.artifact_name }}
28+
path: dist
29+
- name: "Publish to testpypi"
30+
uses: pypa/gh-action-pypi-publish@v1.12.4
31+
with:
32+
attestations: "true"
33+
repository-url: "https://test.pypi.org/legacy/"
34+
- name: "Create GitHub release"
35+
uses: softprops/action-gh-release@v2.2.1
36+
with:
37+
files: dist/*

0 commit comments

Comments
 (0)