Skip to content

Commit

Permalink
#49 기능 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
rkttu committed Feb 6, 2024
1 parent c91a026 commit 50cf11e
Show file tree
Hide file tree
Showing 6 changed files with 832 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/publish.txt

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy Docs to GitHub Pages with Catalog Builder Tool

on:
push:
branches:
- main
paths:
- '.github/workflows/**'
- 'docs/**'
- 'src/**'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

# Setup .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x

# Build catalog builder tool
- name: Build .NET Tool
run: dotnet build src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj --configuration Release

# Run catalog builder tool
- name: Run .NET Tool
run: dotnet run --project src/TableCloth.CatalogBuilder/TableCloth.CatalogBuilder.csproj --configuration Release -- ./docs/ ./outputs/

# Deploy to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./outputs
publish_branch: gh-pages
Loading

0 comments on commit 50cf11e

Please sign in to comment.