Skip to content

Commit c7828b7

Browse files
committed
create draft
1 parent fe39141 commit c7828b7

File tree

1 file changed

+33
-41
lines changed

1 file changed

+33
-41
lines changed

.github/workflows/build-all.yml

Lines changed: 33 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,27 @@
11
name: Build All Latest Assets
22

33
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]
106

117
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
2218

2319
collect-artifacts:
2420
permissions:
2521
contents: write
2622
actions: write
2723
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]
2925
steps:
3026
- run: echo Is making new release? '${{ inputs.newRelease }}'
3127
- name: Checkout
@@ -34,6 +30,7 @@ jobs:
3430
- uses: actions/download-artifact@v4
3531
with:
3632
path: downloaded-artifacts
33+
run-id: 14412724376
3734

3835
- name: Get previous release tag
3936
env:
@@ -44,25 +41,25 @@ jobs:
4441
echo "Using release ${PREV_RELEASE}"
4542
echo "prev_release=${PREV_RELEASE}" >> $GITHUB_OUTPUT
4643
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
5350

5451
- name: Create artifact folders
5552
run: mkdir artifact-binaries && mkdir artifact-shas
5653

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
6663

6764
- name: Copy current workflow artifacts to artifact folders
6865
run: |
@@ -101,13 +98,8 @@ jobs:
10198
10299
- name: Determine release tag to upload assets to and draft type
103100
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
111103
112104
- name: Add binaries to release
113105
id: create_release
@@ -119,7 +111,7 @@ jobs:
119111
files: |
120112
artifact-shas/*
121113
artifact-binaries/*
122-
body: "${{ env.sha_summary }}"
114+
body: '${{ env.sha_summary }}'
123115
generate_release_notes: true
124116
append_body: true
125117

@@ -133,4 +125,4 @@ jobs:
133125
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
134126
-H "Accept: application/vnd.github.v3+json" \
135127
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

Comments
 (0)