Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Nov 14, 2023
1 parent 3ffa716 commit c3fdd4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,25 +26,26 @@ jobs:
with:
dotnet-version: '7.0.x'
include-prerelease: true

- name: Change directory
run: cd example

- name: Publish .NET Core Project
run: dotnet publish example.csproj -c Release -o release --nologo
working-directory: ./example

- name: Change base-tag in index.html from / to Razor-Barcode-Library
run: sed -i 's/<base href="\/" \/>/<base href="\/Razor-Barcode-Library\/" \/>/g' release/wwwroot/index.html
working-directory: ./example

- name: copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
working-directory: ./example

- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
working-directory: ./example

- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot
FOLDER: example/release/wwwroot

0 comments on commit c3fdd4b

Please sign in to comment.