Skip to content

Commit

Permalink
Updated release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
htahir1 committed Oct 4, 2022
1 parent c8b12d0 commit 730931c
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:
push:
tags:
- "v*"
- "*"

jobs:
release:
Expand All @@ -13,8 +13,9 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get the version from the github tag ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- uses: actions/setup-node@v3
with:
node-version: 14.20.0
Expand All @@ -27,11 +28,7 @@ jobs:
env:
REACT_APP_BASE_API_URL: "/api/v1"
REACT_APP_MOCKAPI_RESPONSE: false

- name: Get the version from the github tag ref
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}

REACT_APP_VERSION: ${{ steps.get_version.outputs.VERSION }}
- name: Generate Changelog
uses: heinrichreimer/[email protected]
with:
Expand All @@ -42,17 +39,15 @@ jobs:
issuesWoLabels: "true"
stripHeaders: "true"
- name: Create release archive
uses: a7ul/[email protected]
id: compress
with:
command: c
files: |
./build
outPath: zenml-dashboard.tar.gz
run: |
tar -zcf zenml-dashboard.tar.gz -C build --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.tar.gz
files: |
zenml-dashboard.tar.gz
zenml-dashboard.tar.gz.sha256
body_path: ./CHANGELOG.md
prerelease: "true"
env:
Expand Down

0 comments on commit 730931c

Please sign in to comment.