Skip to content

Commit 0481650

Browse files
committed
feat: Prepare release deployment
Signed-off-by: Helio Chissini de Castro <[email protected]>
1 parent b6e5c94 commit 0481650

File tree

4 files changed

+21
-16
lines changed

4 files changed

+21
-16
lines changed

.github/workflows/build.yml renamed to .github/workflows/build_deploy.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,9 @@
1010
name: Build Frontend
1111
on:
1212
push:
13-
branches:
14-
- main
13+
tags:
14+
- 'v*'
15+
1516
pull_request:
1617
branches:
1718
- main
@@ -55,16 +56,28 @@ jobs:
5556
run: |
5657
pnpm lint --output-file eslint_report.json --format json
5758
continue-on-error: true
58-
5959

6060
- name: Run build
6161
shell: bash
6262
run: |
6363
pnpm build --no-lint > typescript.log
6464
continue-on-error: true
65-
65+
6666
- name: Annotate Code
6767
uses: DerLev/eslint-annotations@v2
6868
with:
6969
eslint-report: eslint_report.json
7070
typescript-log: typescript.log
71+
72+
- name: Create Deploy Tarball
73+
shell: bash
74+
run: |
75+
pnpm pack --pack-destination dist
76+
77+
- name: Create GH release
78+
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
79+
if: startsWith(github.ref, 'refs/tags/v')
80+
with:
81+
token: ${{ secrets.SW360_DEPLOY_TOKEN }}
82+
files: |
83+
dist/sw360-frontend-*.tgz

.github/workflows/docker_deploy.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ on:
1515
workflow_dispatch:
1616
push:
1717
tags:
18-
- 'sw360-*'
19-
paths-ignore:
20-
- "**.md"
18+
- 'v*'
2119

2220
env:
2321
REGISTRY: ghcr.io
@@ -77,4 +75,3 @@ jobs:
7775
labels: ${{ steps.meta_runtime.outputs.labels }}
7876
cache-from: type=gha,scope=runtime
7977
cache-to: type=gha,scope=runtime,mode=max
80-

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,4 @@ output
4949
# cypress
5050
/cypress/screenshots
5151
/cypress/downloads
52+
dist

README.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
# Eclipse SW360 Frontend
22

3-
This project is aimed to replace the ancient [Eclipse SW360 Portal](https://eclipse.org/sw360) frontend, based on [Liferay Portal](https://liferay.dev)
3+
This is the main UI interface for SW360 project.
44

5-
Several reasons pushed this move:
6-
7-
* Hard maintenance for upgrades
8-
* New lean technologies for frontend development
9-
* Open up the codebase for a broad number of open source contributors that understand modern frontend technologies.
5+
The current implementation is now in test stage and can be used in companion with SW360 20.0.0 beta release.
106

117
Please read our code [Code of Conduct](./CODE_OF_CONDUCT.md) before to help with the well being of the community.
128

139
For new contributors, please read the [contributing guideline](./CONTRIBUTING.md)
14-
15-
**This project still on early pre alpha stages.**

0 commit comments

Comments
 (0)