Skip to content

Commit

Permalink
COE-785: everything needs to run in one job
Browse files Browse the repository at this point in the history
... otherwise the artifacts of previous steps are not available
  • Loading branch information
mvoigt-sag authored Jan 6, 2023
1 parent 6fa5d1d commit 8b4b4a7
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
default: "GitHub Release Message"

env:
BUILD_OFFSET: 20
BUILD_OFFSET: 10

jobs:
build_upload:
Expand Down Expand Up @@ -51,16 +51,8 @@ jobs:
name: 'oee-simulators'
path: 'repo/simulators/oee-simulators.zip'

create-release:
runs-on: ubuntu-latest
needs: build_upload
if: github.ref == 'refs/heads/main'
steps:
- name: get versionnumber
run: |
SIMULATOR_VERSION=$(expr ${{ env.BUILD_OFFSET }} + ${GITHUB_RUN_NUMBER})
echo "RELEASE_VERSION=${SIMULATOR_VERSION}" >> $GITHUB_ENV
- name: Create Release
if: github.ref == 'refs/heads/main'
uses: actions/[email protected]
id: create_release
with:
Expand All @@ -73,6 +65,7 @@ jobs:
GITHUB_TOKEN: ${{ github.token }}

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

- name: upload source-code zip
if: github.ref == 'refs/heads/main'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down

0 comments on commit 8b4b4a7

Please sign in to comment.