Skip to content

Commit

Permalink
rollback to old build
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Feb 14, 2024
1 parent 8758b5c commit 5fee4c2
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
Expand All @@ -47,7 +47,7 @@ jobs:
run: echo "version=$(cat package.json | jq '.version' | xargs)" >> $GITHUB_OUTPUT

- name: Setup Node.js
uses: actions/setup-node@v4
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
Expand All @@ -72,14 +72,13 @@ jobs:
# rm -r dist/*

- name: Upload build artifact UI
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: build-artifact-ui
if-no-files-found: error
retention-days: 1
path: |
analytics-ui/build.zip
build_service:
needs: [build_ui]

Expand All @@ -98,28 +97,26 @@ jobs:
# run: echo "version=$(cat ../analytics-ui/package.json | jq '.version' | xargs)" >> $GITHUB_OUTPUT

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v3
with:
fetch-depth: 0
ref: ${{ github.ref_name }}

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

- name: Build backend
run: |
./build.sh analytics-ext-service ${{ needs.build_ui.outputs.version }}
- name: Upload build artifact service
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: build-artifact-service
if-no-files-found: error
retention-days: 1
path: |
./analytics-service/dist/analytics-ext-service.zip
release-assets:
needs: [build_ui, build_service]
# if: ${{ needs.release.outputs.initial-version != needs.release.outputs.version }}
Expand All @@ -137,7 +134,6 @@ jobs:
run: |
ls -lah ./analytics-service
pwd
- name: Release Backend
uses: softprops/action-gh-release@v1
with:
Expand All @@ -156,7 +152,6 @@ jobs:
mv ./analytics-ui/build.zip ./analytics-ui/sag-ps-pkg-analytics-extension-${{ needs.build_ui.outputs.version }}.zip
ls -lah ./analytics-ui
pwd
- name: Release UI
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit 5fee4c2

Please sign in to comment.