feat: added first version of the architecture #2
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: Deploy to Github Pages | |
on: | |
push: | |
branches: ["main"] | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages-deployment" | |
cancel-in-progress: false | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/avisi-cloud/structurizr-site-generatr | |
options: --user root | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@v4 | |
- name: Build the site | |
run: | | |
/opt/structurizr-site-generatr/bin/structurizr-site-generatr generate-site -w src/workspace.dsl | |
- name: Upload the built site | |
uses: actions/upload-artifact@v3 | |
with: | |
name: website | |
path: build/site | |
deploy: | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: website | |
path: build/site | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: 'build/site' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |