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,52 @@ 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+ create_release :
72+ needs :
73+ - prebuild
74+ - build
75+ - sign
76+ - update_repositories
77+ permissions :
78+ contents : write
79+ runs-on : buildinator-5
80+ steps :
81+ - name : Set Variables
82+ if : startsWith(github.ref, 'refs/tags/')
83+ run : |
84+ echo "PRERELEASE=$([ "$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.stable')" = "true" ] && echo false || echo "true")" >> $GITHUB_ENV
85+ echo "TITLE=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.title')" >> $GITHUB_ENV
86+ echo "VERSION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.version')" >> $GITHUB_ENV
87+ echo "REVISION=$(cat ${{github.workspace}}/manifest.json | jq --raw-output '.build_number')" >> $GITHUB_ENV
88+ - name : GitHub Release
89+ if : startsWith(github.ref, 'refs/tags/')
90+ uses : softprops/action-gh-release@v1
91+ with :
92+ name : ${{env.TITLE}} ${{env.VERSION}}
93+ prerelease : ${{env.PRERELEASE}}
94+ body_path : ${{github.workspace}}/CHANGELOG.md
95+ files :
96+ /mnt/ci_artifacts/${{ needs.prebuild.outputs.uuid }}/sign/**/**/*.deb
97+ /mnt/ci_artifacts/${{ needs.prebuild.outputs.uuid }}/sign/**/**/*.rpm
98+ env :
99+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
100+
71101 sync_repositories :
72102 needs :
73103 - prebuild
74104 - build
75105 - sign
76106 - update_repositories
77- runs-on : buildinator-group
107+ - create_release
108+ runs-on : buildinator-5
78109 steps :
79110 - id : push_remote
80111 name : Sync local repository with remote repository
0 commit comments