Skip to content

Commit 397a8f7

Browse files
committed
chore: pre-releases
1 parent 9ef1ae2 commit 397a8f7

File tree

4 files changed

+36
-2
lines changed

4 files changed

+36
-2
lines changed

.github/workflows/cd-nightly.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ concurrency:
1010
cancel-in-progress: true
1111

1212
jobs:
13+
pre_release:
14+
name: Pre-Release
15+
uses: ./.github/workflows/release-nightly.yml
16+
permissions:
17+
contents: write
18+
deployments: write
19+
id-token: write
20+
1321
deploy:
1422
name: Deploy
1523
needs: release

.github/workflows/cd-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ concurrency:
1414
jobs:
1515
release:
1616
name: Release
17-
uses: ./.github/workflows/release.yml
17+
uses: ./.github/workflows/release-prod.yml
1818
permissions:
1919
contents: write
2020
deployments: write

.github/workflows/release-nightly.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Release (Nightly)
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
release:
8+
name: Release
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
deployments: write
13+
steps:
14+
- name: Checkout Source
15+
uses: actions/checkout@v4
16+
17+
- name: Create Release
18+
uses: actions/github-script@v7
19+
with:
20+
github-token: ${{ secrets.GITHUB_TOKEN }}
21+
script: |
22+
await github.request(`POST /repos/${{ github.repository }}/releases`, {
23+
tag_name: "${{ github.ref }}",
24+
generate_release_notes: true,
25+
prerelease: true
26+
});

.github/workflows/release.yml renamed to .github/workflows/release-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Release
1+
name: Release (Production)
22

33
on:
44
workflow_call:

0 commit comments

Comments
 (0)