Skip to content

Commit e95b90b

Browse files
committed
ci: create release
1 parent b396704 commit e95b90b

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build and publish with krankerl
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v6
16+
with:
17+
ref: garr
18+
19+
- name: Read version from appinfo/info.xml
20+
run: |
21+
VERSION=$(xmllint --xpath 'string(//version)' appinfo/info.xml)
22+
if [ -z "$VERSION" ]; then
23+
echo "Version not found in appinfo/info.xml"
24+
exit 1
25+
fi
26+
echo "Version: $VERSION"
27+
echo "VERSION=$VERSION" >> $GITHUB_ENV
28+
29+
- name: Run build script
30+
run: |
31+
./build_with_docker.sh krankerl
32+
33+
- name: Verify artifact
34+
run: |
35+
ls -lh build/artifacts/user_oidc.tar.gz
36+
37+
- name: Create GitHub Release
38+
uses: softprops/action-gh-release@v2
39+
with:
40+
tag_name: ${{ env.VERSION }}
41+
name: Release ${{ env.VERSION }}
42+
draft: false
43+
prerelease: false
44+
files: build/artifacts/user_oidc.tar.gz
45+
overwrite_files: true
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)