Merge pull request #346 from ismaelmiah/main #95
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/[email protected] | |
- 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/[email protected] | |
# with: | |
# branch: demo | |
# folder: release |