-
Notifications
You must be signed in to change notification settings - Fork 1
76 lines (73 loc) · 2.05 KB
/
Xenial.Blog.xenial-io.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Xenial.Blog.xenial-io
on:
schedule:
- cron: "30 0 * * *"
push:
branches: [main]
pull_request:
branches: [main]
repository_dispatch:
types: [new-comment]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Checkout Submodules
run: git submodule init
- name: Checkout Submodules
run: git submodule update
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.400
- name: Install dependencies
run: dotnet restore build/build.csproj
- name: Build
env:
XENIAL-IO: true
run: dotnet run --project build/build.csproj
- uses: actions/upload-artifact@v2
if: github.event.pull_request == false
with:
name: _site
path: _site/
deploy-packages:
runs-on: ubuntu-latest
needs: [build]
if: github.event.pull_request == false
steps:
- uses: actions/checkout@v2
- name: Checkout Submodules
run: git submodule init
- name: Checkout Submodules
run: git submodule update
- uses: actions/download-artifact@v2
with:
name: _site
path: _site/
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.400
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install wheel
pip install creep
- name: Publish to blog.xenial.io
env:
FTP_HOST: ${{secrets.FTP_HOST}}
FTP_PASS: ${{secrets.FTP_PASS}}
FTP_USER: ${{secrets.FTP_USER}}
FTP_DIRECTORY: /blog_xenial
run: dotnet run --project build/build.csproj deploy