Merge pull request #342 from dorthl/mian #92
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to demo branch | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-demo: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2.3.1 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.nuget/packages | |
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-nuget- | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.x' | |
- name: Publish Blogifier | |
run: dotnet publish -c Release /p:RuntimeIdentifier=linux-x64 ./src/Blogifier/Blogifier.csproj --output dist | |
- name: Add .nojekyll file | |
run: touch dist/.nojekyll | |
#- name: Deploy | |
# uses: JamesIves/github-pages-deploy-action@4.1.4 | |
# with: | |
# branch: demo | |
# folder: release |