Skip to content

Commit 7b38b52

Browse files
committed
More release dry runs and prerelease action
1 parent 0829970 commit 7b38b52

File tree

3 files changed

+40
-2
lines changed

3 files changed

+40
-2
lines changed

.github/renovate.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"regexManagers": [
88
{
99
"fileMatch": [
10-
"release.*\\.yml"
10+
"release.*\\.yml",
11+
"prerelease.yml"
1112
],
1213
"matchStrings": [
1314
"version:\\s*(?<currentValue>.*)"

.github/workflows/prerelease.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Prerelease
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
label:
7+
description: 'Prerelease label for the release'
8+
required: true
9+
10+
jobs:
11+
create-release:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
with:
16+
fetch-depth: 0
17+
token: ${{ secrets.PAT }}
18+
- uses: Swatinem/rust-cache@v2
19+
- name: Import GPG key
20+
uses: crazy-max/ghaction-import-gpg@v5
21+
with:
22+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
23+
git_user_signingkey: true
24+
git_commit_gpgsign: true
25+
git_push_gpgsign: false
26+
- name: Install Knope
27+
uses: knope-dev/action@v1
28+
with:
29+
version: 0.8.0
30+
- name: Bump Version & Create GitHub Release
31+
run: knope release --prerelease-label="${{ github.event.inputs.label }}"
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.PAT }}
34+
- name: Install Poetry
35+
run: pip install --upgrade poetry
36+
- name: Push to PyPI
37+
run: poetry publish --build -u __token__ -p ${{ secrets.PYPI_TOKEN }}

.github/workflows/release-dry-run.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
7+
pull_request:
88
jobs:
99
release:
1010
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)