Skip to content

Commit dac05a0

Browse files
Copilotmnkiefer
andauthored
Add release workflow
Agent-Logs-Url: https://github.com/githubnext/agentic-ops/sessions/128d36d2-6aa5-436d-a3ce-5885b990f49f Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
1 parent c780d83 commit dac05a0

1 file changed

Lines changed: 53 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Release
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
tag:
7+
description: Release tag to create (for example, v1.0.0)
8+
required: true
9+
type: string
10+
target:
11+
description: Branch or commit to release from
12+
required: false
13+
default: main
14+
type: string
15+
16+
run-name: Release ${{ inputs.tag }}
17+
18+
permissions:
19+
contents: write
20+
21+
jobs:
22+
release:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
26+
with:
27+
persist-credentials: false
28+
ref: ${{ inputs.target }}
29+
30+
- name: Set up gh-aw CLI
31+
uses: github/gh-aw-actions/setup-cli@f8495a686e66770ae977f82732f34d7340ee42a4 # v0.71.4
32+
with:
33+
version: v0.71.4
34+
github-token: ${{ secrets.GITHUB_TOKEN }}
35+
36+
- name: Compile workflows
37+
run: gh aw compile --dir workflows
38+
env:
39+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Verify compiled workflows are up to date
42+
run: git diff --exit-code -- workflows
43+
44+
- name: Create GitHub release
45+
env:
46+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
run: |
48+
gh release create "${{ inputs.tag }}" \
49+
workflows/*.md \
50+
workflows/*.lock.yml \
51+
--target "${{ inputs.target }}" \
52+
--generate-notes \
53+
--latest

0 commit comments

Comments
 (0)