Skip to content

Update README.md

Update README.md #104

Workflow file for this run

name: demo
env:
dotnet_version: 7.0.x
project_name: "Demo/Demo.csproj"
base_href: /Geometry/
target_framework: net7.0
on:
push:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.dotnet_version }}
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release --no-restore
- name: Publish
run: dotnet publish ${{ env.project_name }} -f ${{ env.target_framework }} -c Release -o app/publish --no-restore | dotnet publish ${{ env.project_name }} -f ${{ env.target_framework }} -c Release -o app/publish --no-restore -p:PublishTrimmed=false
- name: Rewrite base href
uses: SteveSandersonMS/ghaction-rewrite-base-href@v1
with:
html_path: app/publish/wwwroot/index.html
base_href: ${{ env.base_href }}
- name: add .nojekyll
run: touch app/publish/wwwroot/.nojekyll
- name: write git commit id
run: echo -n "${GITHUB_SHA}" > app/publish/wwwroot/commit.txt
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: main # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: app/publish/wwwroot # The folder the action should deploy.
SINGLE_COMMIT: true