Skip to content

Commit d7686f6

Browse files
author
Farzin
committed
github action is back
1 parent 4794201 commit d7686f6

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/demo.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Deploy to demo branch
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy-demo:
10+
runs-on: ubuntu-latest
11+
steps:
12+
13+
- name: Checkout
14+
uses: actions/checkout@v2.3.1
15+
16+
- uses: actions/cache@v2
17+
with:
18+
path: ~/.nuget/packages
19+
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
20+
restore-keys: |
21+
${{ runner.os }}-nuget-
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v1
24+
with:
25+
dotnet-version: '5.0.x'
26+
27+
- name: Publish Blogifier
28+
run: dotnet publish -c Release -o release --nologo
29+
30+
- name: Add .nojekyll file
31+
run: touch release/.nojekyll
32+
33+
- name: Deploy
34+
uses: JamesIves/github-pages-deploy-action@4.1.4
35+
with:
36+
branch: demo
37+
folder: release

0 commit comments

Comments
 (0)