@@ -2,12 +2,12 @@ name: Build Packages
22on :
33 push :
44 branches :
5- - main
5+ - build
66 tags :
77 - ' v*.*.*'
88jobs :
99 prebuild :
10- runs-on : buildinator-group
10+ runs-on : buildinator-5
1111 outputs :
1212 manifest : ${{ steps.prebuild.outputs.manifest }}
1313 matrix : ${{ steps.prebuild.outputs.matrix }}
4040 needs :
4141 - prebuild
4242 - build
43- runs-on : buildinator-group
43+ runs-on : buildinator-5
4444 steps :
4545 - name : Run sign playbook
4646 uses : 45drives/actions/ansible-playbook@main
@@ -60,21 +60,47 @@ jobs:
6060 - prebuild
6161 - build
6262 - sign
63- runs-on : buildinator-group
63+ runs-on : buildinator-5
6464 steps :
6565 - id : push_local
6666 name : Push packages into local repository
6767 uses : 45drives/actions/update-repo@main
6868 with :
6969 directory : ${{ github.workspace }}
7070
71+
72+ create_release :
73+ needs :
74+ - prebuild
75+ - build
76+ - sign
77+ - update_repositories
78+ runs-on : buildinator-5
79+ steps :
80+ - name : Set Variables
81+ if : startsWith(github.ref, 'refs/tags/')
82+ run : |
83+ echo "PRERELEASE=$([ "$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.stable')" = "true" ] && echo false || echo "true")" >> $GITHUB_ENV
84+ echo "TITLE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.title')" >> $GITHUB_ENV
85+ echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV
86+ echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.build_number')" >> $GITHUB_ENV
87+ - name : GitHub Release
88+ if : startsWith(github.ref, 'refs/tags/')
89+ uses : softprops/action-gh-release@v1
90+ with :
91+ name : ${{env.TITLE}} ${{env.VERSION}}
92+ prerelease : ${{env.PRERELEASE}}
93+ body_path : ${{github.workspace}}/CHANGELOG.md
94+ env :
95+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
96+
7197 sync_repositories :
7298 needs :
7399 - prebuild
74100 - build
75101 - sign
76102 - update_repositories
77- runs-on : buildinator-group
103+ runs-on : buildinator-5
78104 steps :
79105 - id : push_remote
80106 name : Sync local repository with remote repository
0 commit comments