Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ $(yamlDefaultBranch) ]
pull_request:
branches: [ $(yamlDefaultBranch) ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -38,6 +37,8 @@ jobs:
run: find ./dist/assets -name "*.js" -exec sed -i 's|src/assets|${{ github.event.repository.name }}/assets|g' {} +
- name: Copy Resources to dist
run: mkdir -p ./dist/assets && cp -R ./src/assets/* ./dist/assets/
- name: SPA routing handling
run: cp .dist/index.html .dist/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ $(yamlDefaultBranch) ]
pull_request:
branches: [ $(yamlDefaultBranch) ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -40,6 +39,8 @@ jobs:
run: cp ./ig-theme.css ./dist/
- name: Update href Paths for ig-theme.css
run: find ./dist -type f -exec sed -i "s|href=\"../../ig-theme.css\"|href=\"../../${{ github.event.repository.name }}/ig-theme.css\"|g" {} +
- name: SPA routing handling
run: cp .dist/index.html .dist/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ <%=yamlDefaultBranch%> ]
pull_request:
branches: [ <%=yamlDefaultBranch%> ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -44,6 +43,8 @@ jobs:
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
- name: Update Resource Paths
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
- name: SPA routing handling
run: cp ${{ env.BUILD_PATH }}/index.html ${{ env.BUILD_PATH }}/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -44,6 +43,8 @@ jobs:
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
- name: Update Resource Paths
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
- name: SPA routing handling
run: cp ${{ env.BUILD_PATH }}/index.html ${{ env.BUILD_PATH }}/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ <%=yamlDefaultBranch%> ]
pull_request:
branches: [ <%=yamlDefaultBranch%> ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -44,6 +43,8 @@ jobs:
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
- name: Update Resource Paths
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
- name: SPA routing handling
run: cp ${{ env.BUILD_PATH }}/index.html ${{ env.BUILD_PATH }}/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches: [ <%=yamlDefaultBranch%> ]
pull_request:
branches: [ <%=yamlDefaultBranch%> ]
workflow_dispatch: {}

jobs:
build-and-deploy:
Expand Down Expand Up @@ -44,6 +43,8 @@ jobs:
run: npm run build -- --base-href "/${{ github.event.repository.name }}/"
- name: Update Resource Paths
run: find ${{ env.BUILD_PATH }} -type f -name '*main*.js' -exec sed -i -e "s|/assets|/${{ github.event.repository.name }}/assets|g" -e "s|url('/assets|url('/${{ github.event.repository.name }}/assets|g" {} +
- name: SPA routing handling
run: cp ${{ env.BUILD_PATH }}/index.html ${{ env.BUILD_PATH }}/404.html
- name: Upload build artifact to GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
Expand Down
Loading