Skip to content

Commit

Permalink
SH-21
Browse files Browse the repository at this point in the history
  • Loading branch information
fatihtokus committed Feb 19, 2024
1 parent 0c71bc9 commit e5ba6bd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 46 deletions.
27 changes: 3 additions & 24 deletions .github/workflows/release-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ jobs:
with:
ref: SH-21

- name: Checkout repo1
run: |
pwd
ls
ls src
cd src/frontend-app/
- name: Setup Node
uses: actions/setup-node@v3
with:
Expand All @@ -41,21 +34,6 @@ jobs:
cd src/frontend-app/
npm run build
- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist

- name: Logging
run: |
echo "----Logging------------------------------------------------------"
pwd
ls
ls src
ls src/frontend-app
ls src/frontend-app/dist
- name: Preparing report_template.html
run: |
# copy js files
Expand All @@ -74,8 +52,9 @@ jobs:
cat "$reportTemplate"
- name: Compress
run: tar -zcvf scan2html.tar.gz scan2html "$reportTemplate" LICENSE results.json
- name: Archive code coverage results

- name: Archive plugin
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
name: plugin
path: scan2html.tar.gz
31 changes: 9 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,45 +16,31 @@ jobs:
- name: Checkout repo
uses: actions/checkout@v3

- name: Checkout repo1
run: |
pwd
ls
cd scan2html\src\frontend-app\
- name: Setup Node
uses: actions/setup-node@v3
with:
working-directory: src/frontend-app

- name: Install dependencies
uses: bahmutov/npm-install@v1

- name: Build project
run: npm run build

- name: Upload production-ready build files
uses: actions/upload-artifact@v3
with:
name: production-files
path: ./dist
working-directory: src/frontend-app

- name: qqq1
- name: Build project
run: |
echo "----auditing branch------------------------------------------------------"
pwd
ls
ls scan2html
ls scan2html/src
ls scan2html/dist
cd src/frontend-app/
npm run build
- name: Preparing report_template.html
run: |
# copy js files
cat
{
# copy report file except the last 4 lines
head -n -4 'scan2html/src/frontend-app/dist/assets/app-template.html'
head -n -4 'src/frontend-app/dist/src/assets/app-template.html'
echo ''
cat 'scan2html/src/frontend-app/dist/app.js'
cat 'src/frontend-app/dist/app.js'
echo ''
echo '</script>'
echo '</body>'
Expand All @@ -64,6 +50,7 @@ jobs:
cat "$reportTemplate"
- name: Compress
run: tar -zcvf scan2html.tar.gz scan2html "$reportTemplate" LICENSE results.json

- name: Release
uses: softprops/action-gh-release@v1
with:
Expand Down

0 comments on commit e5ba6bd

Please sign in to comment.