I have a static website which is generating an output
folder to the MyBlog/output
in the master
branch. But I want output to be the source of my GH Pages, I am looking for a way to use output
as the root of gh-pages
branch.
That's my deploy.yml
name: Deploy Site
on:
push:
branches:
- master
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- uses: actions/setup-dotnet@v1
with:
dotnet-version: '3.1.100'
- run: dotnet run --project "MyBlog" -- deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: git push
What should I do / add to my deploy.yml to do what I want please.
Thanks in advance.