File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments