Skip to content

Commit

Permalink
fix: solved the assets issue on the deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicente-G committed Dec 11, 2023
1 parent 1bbd55d commit a55fb40
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,42 +14,37 @@ concurrency:
cancel-in-progress: false

jobs:
build:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
container:
image: ghcr.io/avisi-cloud/structurizr-site-generatr
options: --user root
steps:
- name: Git Checkout
uses: actions/checkout@v4

- name: Build the site
- name: Build Site with Generatr
run: |
/opt/structurizr-site-generatr/bin/structurizr-site-generatr generate-site -w src/workspace.dsl
/opt/structurizr-site-generatr/bin/structurizr-site-generatr generate-site \
-w src/workspace.dsl \
--assets-dir src/assets \
--branches main \
--default-branch main
- 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
- name: Setup Github Pages
if: ${{ success() }}
uses: actions/configure-pages@v3
- name: Upload artifact

- name: Upload Artifact
if: ${{ success() }}
uses: actions/upload-pages-artifact@v2
with:
path: 'build/site'

- name: Deploy to GitHub Pages
if: ${{ success() }}
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit a55fb40

Please sign in to comment.