Skip to content

Commit

Permalink
refactor: update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cahllagerfeld committed Nov 29, 2024
1 parent 36668e5 commit f56cb83
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,11 @@ jobs:
with:
node-version: 20

- name: Install yarn
run: npm install --global yarn

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Build old dashboard
working-directory: ./legacy
run: |
yarn install
yarn build
env:
REACT_APP_HUB_API_URL: "https://hubapi.zenml.io"
REACT_APP_BASE_API_URL: "/api/v1"
REACT_APP_MOCKAPI_RESPONSE: false
REACT_APP_USE_COOKIE: "true"
REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}

- name: Build new dashboard
run: |
pnpm install --frozen-lockfile
Expand All @@ -63,17 +48,13 @@ jobs:

- name: Create release archive
run: |
tar -zcf zenml-dashboard-legacy.tar.gz -C ./legacy/build --transform="s#\.\/##" .
sha256sum -b zenml-dashboard-legacy.tar.gz > zenml-dashboard-legacy.tar.gz.sha256
tar -zcf zenml-dashboard.tar.gz -C dist --transform="s#\.\/##" .
sha256sum -b zenml-dashboard.tar.gz > zenml-dashboard.tar.gz.sha256
- name: Release to GitHub
uses: softprops/action-gh-release@v1
with:
files: |
zenml-dashboard-legacy.tar.gz
zenml-dashboard-legacy.tar.gz.sha256
zenml-dashboard.tar.gz
zenml-dashboard.tar.gz.sha256
body_path: ./CHANGELOG.md
Expand Down

0 comments on commit f56cb83

Please sign in to comment.