Skip to content

Commit 6323c23

Browse files
committed
Test release
1 parent 391d031 commit 6323c23

File tree

1 file changed

+3
-52
lines changed

1 file changed

+3
-52
lines changed

.github/workflows/release.yml

+3-52
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,17 @@
11
name: Release
22

33
on:
4-
pull_request:
4+
push:
55
branches:
6-
- "master"
7-
- "ci"
8-
- "[0-9]+.[0-9x]+*"
9-
paths:
10-
- "httptools/_version.py"
6+
- "release"
117

128
jobs:
139
validate-release-request:
1410
runs-on: ubuntu-latest
1511
steps:
16-
- name: Validate release PR
17-
uses: edgedb/action-release/validate-pr@bae6b9134e872166b43d218dd79397c851c41c9a
18-
id: checkver
19-
with:
20-
require_team: Release Managers
21-
require_approval: no
22-
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
23-
version_file: httptools/_version.py
24-
version_line_pattern: |
25-
__version__\s*=\s*(?:['"])([[:PEP440:]])(?:['"])
26-
27-
- name: Stop if not approved
28-
if: steps.checkver.outputs.approved != 'true'
29-
run: |
30-
echo ::error::PR is not approved yet.
31-
exit 1
32-
3312
- name: Store release version for later use
3413
env:
35-
VERSION: ${{ steps.checkver.outputs.version }}
14+
VERSION: 0.6.1
3615
run: |
3716
mkdir -p dist/
3817
echo "${VERSION}" > dist/VERSION
@@ -146,33 +125,5 @@ jobs:
146125
echo ::set-output name=version::$(cat dist/VERSION)
147126
rm dist/VERSION
148127
149-
- name: Merge and tag the PR
150-
uses: edgedb/action-release/merge@bae6b9134e872166b43d218dd79397c851c41c9a
151-
with:
152-
github_token: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }}
153-
ssh_key: ${{ secrets.RELEASE_BOT_SSH_KEY }}
154-
gpg_key: ${{ secrets.RELEASE_BOT_GPG_KEY }}
155-
gpg_key_id: "5C468778062D87BF!"
156-
tag_name: v${{ steps.relver.outputs.version }}
157-
158-
- name: Publish Github Release
159-
uses: elprans/gh-action-create-release@5f9abb8f0677196a76ea77e64341fa8ca31dad4f
160-
env:
161-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
162-
with:
163-
tag_name: v${{ steps.relver.outputs.version }}
164-
release_name: v${{ steps.relver.outputs.version }}
165-
target: ${{ github.event.pull_request.base.ref }}
166-
body: ${{ github.event.pull_request.body }}
167-
draft: false
168-
169128
- run: |
170129
ls -al dist/
171-
172-
- name: Upload to PyPI
173-
uses: pypa/gh-action-pypi-publish@f7600683efdcb7656dec5b29656edb7bc586e597 # v1.10.3
174-
with:
175-
user: __token__
176-
password: ${{ secrets.PYPI_TOKEN }}
177-
# password: ${{ secrets.TEST_PYPI_TOKEN }}
178-
# repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)