Skip to content

feat: Spectrum Web Components로 UI 변경 (#2) #4

feat: Spectrum Web Components로 UI 변경 (#2)

feat: Spectrum Web Components로 UI 변경 (#2) #4

Workflow file for this run

name: Publish docs via GitHub Pages
on:
push:
branches: [ 'master' ]
paths: [ '.github/workflows/**', 'src/**' ]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Publish .NET Core Project
run: dotnet publish ./src/DotNetDevLottery/DotNetDevLottery.csproj -c Release -o release --nologo
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
# changes the base-tag in index.html from '/' to 'DotNetDevLottery' to match GitHub Pages repository subdirectory
#- name: Change base-tag in index.html from / to DotNetDevLottery/
# run: sed -i 's/<base href="\/" \/>/<base href="\/DotNetDevLottery\/" \/>/g' release/wwwroot/index.html
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot