-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.39 KB
/
release-viz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Create DeepPhe-Viz Zip
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Build with Maven
run: mkdir zips
- id: viz-release
uses: pozetroninc/github-action-get-latest-release@master
with:
owner: DeepPhe
repo: DeepPhe-Viz
excludes: prerelease, draft
- name: Latest Viz Release
run: echo "viz_version=${{ steps.viz-release.outputs.release }}" >> $GITHUB_ENV
- name: Report Release
run: echo 'Latest Visuzlizer release is ${{ env.viz_version }}'
- name: Checkout
uses: actions/checkout@v2
with:
repository: DeepPhe/DeepPhe-Viz
ref: ${{ steps.viz-release.outputs.release }}
path: 'DeepPhe-Viz'
- name: Zip Release
run: |
cd DeepPhe-Viz
zip -r -X DeepPhe-Viz api/ client/
- name: Upload Release Asset
id: upload-viz
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: DeepPhe-Viz/DeepPhe-Viz.zip
asset_name: DeepPhe-Viz.zip
tag: 'refs/heads/main'
overwrite: true