Skip to content

Commit

Permalink
added a publishing action
Browse files Browse the repository at this point in the history
  • Loading branch information
connectuum committed Dec 22, 2021
1 parent 7f5c565 commit ad4efa8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Build and Deploy
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1
- name: Publish with dotnet
run: dotnet publish --configuration Release --output build
- name: Deploy to Github Pages
uses: connectuum/poemdown@trunk
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BASE_BRANCH: master
BRANCH: gh-pages
FOLDER: build/wwwroot
CLEAN: true

0 comments on commit ad4efa8

Please sign in to comment.