-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (61 loc) · 1.55 KB
/
Copy pathrelease.yml
File metadata and controls
74 lines (61 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
name: Release
on:
workflow_dispatch:
inputs:
version:
description: "The next iteration version. This workflow will automatically perform the required version bumps"
required: true
permissions:
contents: read
env:
# Ref: https://docs.astral.sh/uv/concepts/projects/sync/#checking-if-the-lockfile-is-up-to-date
UV_FROZEN: "true"
concurrency:
group: ${{ github.workflow }}
jobs:
ci:
permissions:
contents: read
id-token: write
attestations: write
artifact-metadata: write
uses: ./.github/workflows/ci.yml
secrets: inherit
release:
runs-on: ubuntu-latest
needs:
- ci
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
merge-multiple: true
- name: Install environment
uses: ./.github/workflows/env-install
- name: Release
env:
GH_TOKEN: ${{ github.token }}
run: uv run poe release
post-release:
needs:
- release
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Setup github actions bot
uses: ./.github/workflows/setup-github-bot
- name: Install environment
uses: ./.github/workflows/env-install
- name: Run post-release step
run: uv run poe release:post
env:
GH_TOKEN: ${{ github.token }}
NEXT_VERSION: ${{ inputs.version }}