Skip to content

Commit 727868a

Browse files
committed
revert release testing changes
1 parent 5159d8c commit 727868a

File tree

1 file changed

+24
-27
lines changed

1 file changed

+24
-27
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
name: release
44

5-
# on:
6-
# workflow_dispatch:
7-
# inputs:
8-
# version:
9-
# description: Release version (e.g. `v0.4.5`)
10-
# type: string
11-
# required: true
12-
13-
on: pull_request
5+
on:
6+
workflow_dispatch:
7+
inputs:
8+
version:
9+
description: Release version (e.g. `v0.4.5`)
10+
type: string
11+
required: true
1412

1513
jobs:
1614
release:
@@ -21,8 +19,7 @@ jobs:
2119
id-token: write
2220
runs-on: ubuntu-latest
2321
env:
24-
# RELEASE_VERSION: ${{ inputs.version }}
25-
RELEASE_VERSION: v0.4.5
22+
RELEASE_VERSION: ${{ inputs.version }}
2623
steps:
2724
- name: Checkout repo
2825
uses: actions/checkout@v4
@@ -33,19 +30,19 @@ jobs:
3330
run: git tag "${RELEASE_VERSION}"
3431
- name: Build and test
3532
uses: ./.github/actions/build-and-test
36-
# - name: Push tag
37-
# run: git push origin "${RELEASE_VERSION}"
38-
# - name: Create release from tag
39-
# env:
40-
# GH_TOKEN: ${{ github.token }}
41-
# run: |
42-
# gh api \
43-
# --method POST \
44-
# "/repos/${GITHUB_REPOSITORY}/releases" \
45-
# -f "tag_name=${RELEASE_VERSION}" \
46-
# -f "name=${RELEASE_VERSION}" \
47-
# -F "draft=false" \
48-
# -F "prerelease=false" \
49-
# -F "generate_release_notes=true"
50-
# - name: Publish package distributions to PyPI
51-
# uses: pypa/gh-action-pypi-publish@release/v1
33+
- name: Push tag
34+
run: git push origin "${RELEASE_VERSION}"
35+
- name: Create release from tag
36+
env:
37+
GH_TOKEN: ${{ github.token }}
38+
run: |
39+
gh api \
40+
--method POST \
41+
"/repos/${GITHUB_REPOSITORY}/releases" \
42+
-f "tag_name=${RELEASE_VERSION}" \
43+
-f "name=${RELEASE_VERSION}" \
44+
-F "draft=false" \
45+
-F "prerelease=false" \
46+
-F "generate_release_notes=true"
47+
- name: Publish package distributions to PyPI
48+
uses: pypa/gh-action-pypi-publish@release/v1

0 commit comments

Comments
 (0)