Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Github release/tag action #1696

Merged
merged 9 commits into from
Jan 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 25 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,28 @@ jobs:
run: |
cd ui
npm ci --prefer-offline --cache ~/.npm
node_modules/@angular/cli/bin/ng build -c "openems,openems-edge-prod,prod"
node_modules/@angular/cli/bin/ng build -c "openems,openems-edge-prod,prod"

#
# Is this a Tag? Prepare release assets and create a draft release
#
- name: Prepare Edge+Backend assets
if: startsWith(github.ref, 'refs/tags/')
run: |
./gradlew buildEdge buildBackend

- name: Prepare UI asset
if: startsWith(github.ref, 'refs/tags/')
uses: edgarrc/action-7z@v1
with:
args: 7z a openems-ui.zip ./ui/target/*

- name: Create draft Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
build/openems-edge.jar
build/openems-backend.jar
openems-ui.zip