Skip to content

fix: 추첨버튼 여러번 클릭 방지 (#14) #10

fix: 추첨버튼 여러번 클릭 방지 (#14)

fix: 추첨버튼 여러번 클릭 방지 (#14) #10

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 Node.js
uses: actions/setup-node@v4
with:
node-version-file: "./.nvmrc"
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: "./src/DotNetDevLottery/package.json"
run_install: false
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.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