Skip to content

Commit 8b4b4a7

Browse files
authored
COE-785: everything needs to run in one job
... otherwise the artifacts of previous steps are not available
1 parent 6fa5d1d commit 8b4b4a7

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

.github/workflows/build-release.yml

+4-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
default: "GitHub Release Message"
1212

1313
env:
14-
BUILD_OFFSET: 20
14+
BUILD_OFFSET: 10
1515

1616
jobs:
1717
build_upload:
@@ -51,16 +51,8 @@ jobs:
5151
name: 'oee-simulators'
5252
path: 'repo/simulators/oee-simulators.zip'
5353

54-
create-release:
55-
runs-on: ubuntu-latest
56-
needs: build_upload
57-
if: github.ref == 'refs/heads/main'
58-
steps:
59-
- name: get versionnumber
60-
run: |
61-
SIMULATOR_VERSION=$(expr ${{ env.BUILD_OFFSET }} + ${GITHUB_RUN_NUMBER})
62-
echo "RELEASE_VERSION=${SIMULATOR_VERSION}" >> $GITHUB_ENV
6354
- name: Create Release
55+
if: github.ref == 'refs/heads/main'
6456
uses: actions/[email protected]
6557
id: create_release
6658
with:
@@ -73,6 +65,7 @@ jobs:
7365
GITHUB_TOKEN: ${{ github.token }}
7466

7567
- name: upload oee-sim zip
68+
if: github.ref == 'refs/heads/main'
7669
uses: actions/[email protected]
7770
env:
7871
GITHUB_TOKEN: ${{ github.token }}
@@ -83,6 +76,7 @@ jobs:
8376
asset_content_type: application/zip
8477

8578
- name: upload source-code zip
79+
if: github.ref == 'refs/heads/main'
8680
uses: actions/[email protected]
8781
env:
8882
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)