-
-
Notifications
You must be signed in to change notification settings - Fork 31
55 lines (49 loc) · 1.81 KB
/
prepare-release.yml
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
name: Prepare a Release
on:
workflow_dispatch:
push:
branches:
- main
paths:
- debian/changelog
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
release:
runs-on: ubuntu-24.04
container: "ghcr.io/regolith-linux/ci-ubuntu:noble-amd64"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare Release
id: prepare
uses: regolith-linux/actions/prepare-release@main
env:
GITHUB_TOKEN: ${{ secrets.ORG_BROADCAST_TOKEN2 }}
with:
name: "${{ github.event.repository.name }}"
repo: "${{ github.server_url }}/${{ github.repository }}.git"
ref: "${{ github.ref_name }}"
- name: Push Changes to Voulage
uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ steps.prepare.outputs.release-exists == 'false' }}
env:
GITHUB_TOKEN: ${{ secrets.ORG_BROADCAST_TOKEN2 }}
with:
repository: "${{ steps.prepare.outputs.voulage-path }}"
branch: "main"
file_pattern: "stage/testing/**"
commit_message: "chore: bump ${{ github.event.repository.name }} testing to ${{ steps.prepare.outputs.release-version }}"
commit_user_name: regolith-ci-bot
commit_user_email: [email protected]
commit_author: "regolith-ci-bot <[email protected]>"
- name: Release Package
uses: softprops/action-gh-release@v2
if: ${{ steps.prepare.outputs.release-exists == 'false' }}
with:
name: ${{ steps.prepare.outputs.release-version }}
tag_name: ${{ steps.prepare.outputs.release-version }}
token: ${{ secrets.ORG_BROADCAST_TOKEN2 }}
target_commitish: "${{ github.sha }}"
generate_release_notes: true