Skip to content

Commit

Permalink
Merge pull request #36 from hpicgs/embedding-release
Browse files Browse the repository at this point in the history
Embedding release
  • Loading branch information
Jasperhino authored Oct 12, 2022
2 parents 7885d37 + 9b817c6 commit 738a259
Show file tree
Hide file tree
Showing 15 changed files with 49,265 additions and 112 deletions.
37 changes: 33 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,48 @@ permissions:
contents: write

jobs:
bump-version:
name: Bump tag version ⬆
release:
name: Automatic Release
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: "actions/checkout@v3"
uses: actions/checkout@v3

- name: Bump version and push tag 🏷
id: tag
uses: anothrNick/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WITH_V: true

- name: Install pnpm ⚙
uses: pnpm/[email protected]
with:
version: 7

- name: Install treemaps library 📦
run: |
cd frontend
git clone --branch hiviser_deployment https://${{ secrets.SEERENE_TREEMAPS_DEPLOY_USER }}:${{ secrets.SEERENE_TREEMAPS_DEPLOY_TOKEN }}@gitlab.hpi3d.de/seerene/treemaps.git
cd treemaps
npm install
npm run build-lib
- name: Build Embedding 🛠
run: |
cd frontend
pnpm install
pnpm run build:embed
- name: Pubish Release 🚀
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.new_tag }}
files: |
frontend/embed/embed.es.js
frontend/embed/embed.umd.js
deploy:
name: Deploy Frontend to GitHub Pages 🚀
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession.
Expand Down Expand Up @@ -51,7 +80,7 @@ jobs:
npm install
npm run build-lib
- name: Install and Build 🔧
- name: Install and Build Pages 🔧
run: |
cd frontend
pnpm install
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -201,4 +201,7 @@ $RECYCLE.BIN/
node_modules

metrics.json
metrics.csv
metrics.csv

frontend/embed/*
!frontend/embed/embed.*.js
Loading

0 comments on commit 738a259

Please sign in to comment.