1
1
name : Build All Latest Assets
2
2
3
3
on :
4
- workflow_dispatch :
5
- inputs :
6
- newRelease :
7
- description : ' Upload assets to new draft release?'
8
- default : false
9
- type : boolean
4
+ push :
5
+ branches : [oscar/release-3.6]
10
6
11
7
jobs :
12
- build-alpine :
13
- uses : ./.github/workflows/build-alpine.yml
14
- build-linux :
15
- uses : ./.github/workflows/build-linux.yml
16
- build-linuxstatic :
17
- uses : ./.github/workflows/build-linuxstatic.yml
18
- build-macos :
19
- uses : ./.github/workflows/build-macos.yml
20
- build-windows :
21
- uses : ./.github/workflows/build-windows.yml
8
+ # build-alpine:
9
+ # uses: ./.github/workflows/build-alpine.yml
10
+ # build-linux:
11
+ # uses: ./.github/workflows/build-linux.yml
12
+ # build-linuxstatic:
13
+ # uses: ./.github/workflows/build-linuxstatic.yml
14
+ # build-macos:
15
+ # uses: ./.github/workflows/build-macos.yml
16
+ # build-windows:
17
+ # uses: ./.github/workflows/build-windows.yml
22
18
23
19
collect-artifacts :
24
20
permissions :
25
21
contents : write
26
22
actions : write
27
23
runs-on : ubuntu-latest
28
- needs : [build-alpine, build-linux, build-linuxstatic, build-macos, build-windows]
24
+ # needs: [build-alpine, build-linux, build-linuxstatic, build-macos, build-windows]
29
25
steps :
30
26
- run : echo Is making new release? '${{ inputs.newRelease }}'
31
27
- name : Checkout
34
30
- uses : actions/download-artifact@v4
35
31
with :
36
32
path : downloaded-artifacts
33
+ run-id : 14412724376
37
34
38
35
- name : Get previous release tag
39
36
env :
@@ -44,25 +41,25 @@ jobs:
44
41
echo "Using release ${PREV_RELEASE}"
45
42
echo "prev_release=${PREV_RELEASE}" >> $GITHUB_OUTPUT
46
43
47
- - name : Get previously released artifacts
48
- if : ${{ inputs.newRelease }}
49
- env :
50
- GITHUB_TOKEN : ${{ github.token }}
51
- run : |
52
- gh release download ${{ steps.get_previous_release.outputs.prev_release }} --dir release-artifacts
44
+ # - name: Get previously released artifacts
45
+ # if: ${{ inputs.newRelease }}
46
+ # env:
47
+ # GITHUB_TOKEN: ${{ github.token }}
48
+ # run: |
49
+ # gh release download ${{ steps.get_previous_release.outputs.prev_release }} --dir release-artifacts
53
50
54
51
- name : Create artifact folders
55
52
run : mkdir artifact-binaries && mkdir artifact-shas
56
53
57
- - name : Copy previous release artifacts to artifact folders
58
- if : ${{ inputs.newRelease }}
59
- run : |
60
- pushd release-artifacts
61
- pwd
62
- ls -la
63
- mv *.sha256sum ../artifact-shas/.
64
- mv * ../artifact-binaries/.
65
- popd
54
+ # - name: Copy previous release artifacts to artifact folders
55
+ # if: ${{ inputs.newRelease }}
56
+ # run: |
57
+ # pushd release-artifacts
58
+ # pwd
59
+ # ls -la
60
+ # mv *.sha256sum ../artifact-shas/.
61
+ # mv * ../artifact-binaries/.
62
+ # popd
66
63
67
64
- name : Copy current workflow artifacts to artifact folders
68
65
run : |
@@ -101,13 +98,8 @@ jobs:
101
98
102
99
- name : Determine release tag to upload assets to and draft type
103
100
run : |
104
- if [[ "${{ inputs.newRelease }}" == "false" ]]; then
105
- echo "use_release_tag=${{ steps.get_previous_release.outputs.prev_release }}" >> $GITHUB_ENV
106
- echo "create_draft=false" >> $GITHUB_ENV
107
- else
108
- echo "use_release_tag=draft_release_${{ github.sha }}" >> $GITHUB_ENV
109
- echo "create_draft=true" >> $GITHUB_ENV
110
- fi
101
+ echo "use_release_tag=draft_release_${{ github.sha }}" >> $GITHUB_ENV
102
+ echo "create_draft=true" >> $GITHUB_ENV
111
103
112
104
- name : Add binaries to release
113
105
id : create_release
@@ -119,7 +111,7 @@ jobs:
119
111
files : |
120
112
artifact-shas/*
121
113
artifact-binaries/*
122
- body : " ${{ env.sha_summary }}"
114
+ body : ' ${{ env.sha_summary }}'
123
115
generate_release_notes : true
124
116
append_body : true
125
117
@@ -133,4 +125,4 @@ jobs:
133
125
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
134
126
-H "Accept: application/vnd.github.v3+json" \
135
127
https://api.github.com/repos/${{ github.repository }}/actions/workflows/update-expected.yml/dispatches \
136
- -d '{"ref":"main","inputs":{"shas":"$(cat ${{ steps.generate_sha_file.outputs.sha_output_file }})"}}'
128
+ -d '{"ref":"main","inputs":{"shas":"$(cat ${{ steps.generate_sha_file.outputs.sha_output_file }})"}}'
0 commit comments