@@ -29,74 +29,19 @@ jobs:
29
29
git merge stable
30
30
git push origin master
31
31
32
- build :
33
- runs-on : ubuntu-latest
34
- name : Build standalone executable
35
-
36
- steps :
37
- - uses : actions/checkout@v3
38
-
39
- - name : Cache Composer packages
40
- id : composer-cache
41
- uses : actions/cache@v3
42
- with :
43
- path : vendor
44
- key : ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
45
- restore-keys : |
46
- ${{ runner.os }}-php-
47
-
48
- - name : Install dependencies
49
- run : composer install --no-interaction --no-progress --no-suggest --prefer-dist
50
-
51
- - name : Get build version
52
- id : build-version
53
- run : |
54
- echo "version=$(php ./bin/get-release-version.php)" >> $GITHUB_OUTPUT
55
- echo "Version: v$(php ./bin/get-release-version.php)"
56
- php ./bin/get-release-version.php > version
57
-
58
- - name : Build executable
59
- run : php hyde standalone:build --build-version-suffix="${{ steps.build-version.outputs.sha_short }}"
60
-
61
- - name : Verify executable
62
- run : php builds/hyde
63
-
64
- - name : Verify executable version
65
- run : php builds/hyde --version
66
-
67
- - name : Calculate checksum
68
- run : |
69
- cd builds
70
- sha256sum hyde > checksum.txt
71
- echo "SHA256 checksum of the application binary: $(cat checksum.txt)"
72
-
73
- - name : Upload executable
74
- uses : actions/upload-artifact@v3
75
- with :
76
- name : hyde
77
- path : builds/hyde
78
-
79
- - name : Upload the checksum artifact
80
- uses : actions/upload-artifact@v3
81
- with :
82
- name : checksum
83
- path : builds/checksum.txt
84
-
85
- - name : Upload the version number artifact
86
- uses : actions/upload-artifact@v3
87
- with :
88
- name : version
89
- path : version
90
-
91
32
release :
92
- needs : build
93
33
runs-on : ubuntu-latest
94
34
name : Publish release
95
35
96
36
permissions :
97
37
contents : write
98
38
99
39
steps :
40
+ - uses : actions/checkout@v3
41
+ with :
42
+ ssh-key : ${{ secrets.SSH_PRIVATE_KEY }}
43
+ ref : stable
44
+
100
45
- name : Download the application artifact
101
46
uses : actions/download-artifact@v3
102
47
with :
@@ -116,13 +61,11 @@ jobs:
116
61
117
62
- name : Prepare version information
118
63
run : |
119
- echo "CHECKSUM=$(cat builds/checksum.txt | cut -d ' ' -f 1)" >> $GITHUB_ENV
120
- echo "VERSION=$(cat version)" >> $GITHUB_ENV
64
+ echo "VERSION=$(php ./bin/get-release-version.php)" >> $GITHUB_ENV
121
65
122
66
- name : Print version information
123
67
run : |
124
68
echo "Version: v${{ env.VERSION }}"
125
- echo "Checksum: ${{ env.CHECKSUM }}"
126
69
127
70
- name : Create a release
128
71
uses : ncipollo/release-action@v1
132
75
commit : ${{ github.sha }}
133
76
updateOnlyUnreleased : true
134
77
generateReleaseNotes : true
135
- artifacts : builds/hyde, builds/checksum.txt
78
+ artifacts : builds/hyde
0 commit comments