Skip to content

Commit

Permalink
updated build
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Nov 29, 2023
1 parent 8fc8801 commit c294bc8
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,20 @@ jobs:
path: |
analytics-ui/dist/build.zip
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Save Version
id: save-version
run: echo "version=$(cat package.json | jq '.version' | xargs)" >> $GITHUB_OUTPUT

- name: Run the scripts
run: |
./build.sh analytics-ext-service ${{ steps.save-version.outputs.version }}
working-directory: ./analytics-service


release:
name: Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,6 +122,16 @@ jobs:
- name: Save Version
id: save-version
run: echo "version=$(cat package.json | jq '.version' | xargs)" >> $GITHUB_OUTPUT

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2

- name: Run the scripts
run: |
./build.sh analytics-ext-service ${{ steps.save-version.outputs.version }}
working-directory: ./analytics-service

release-assets:
needs: [release]
#if: ${{ needs.release.outputs.initial-version != needs.release.outputs.version }}
Expand Down Expand Up @@ -144,8 +168,14 @@ jobs:
cd ../../..
rm -r dist/apps
- name: Release
- name: Release UI
uses: softprops/action-gh-release@v1
with:
files: analytics-ui/sag-ps-pkg-analytics-extension-${{ needs.release.outputs.version }}.zip
tag_name: v${{ needs.release.outputs.version }}

- name: Release Backend
uses: softprops/action-gh-release@v1
with:
files: analytics-service/dist/analytics-ext-service.zip
tag_name: v${{ needs.release.outputs.version }}

0 comments on commit c294bc8

Please sign in to comment.