Skip to content

Commit

Permalink
use likec4/actions
Browse files Browse the repository at this point in the history
Signed-off-by: Denis Davydkov <denis@davydkov.com>
  • Loading branch information
davydkov authored Nov 21, 2023
1 parent 1b5c83b commit db8fb36
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:
id: pages
uses: actions/configure-pages@v3
- name: Build
run: npx likec4@latest build -o ./dist --base "${{ steps.pages.outputs.base_path }}"
# GitHub Pages doesn't allow to configure routing for single page apps,
# So we copy index.html to 404.html to make it work
- name: Custom 404 page
run: cp ./dist/index.html ./dist/404.html
uses: likec4/actions@v1
with:
action: build
output: dist
base: ${{ steps.pages.outputs.base_path }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
Expand Down

0 comments on commit db8fb36

Please sign in to comment.