fix: set ecommerce as external #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy | |
on: | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
deploy_github_pages: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v3 | |
- name: Set up Environment | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '19' | |
- name: Install Dependencies | |
run: | | |
brew tap avisi-cloud/tools | |
brew install structurizr-site-generatr | |
- name: Build the Site | |
run: | | |
structurizr-site-generatr generate-site \ | |
--workspace-file src/workspace.dsl \ | |
--assets-dir src/assets \ | |
--branches main \ | |
--default-branch main | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
branch: gh-pages | |
folder: build/site | |
clean: true |