Skip to content
Permalink
main
Go to file
 
 
Cannot retrieve contributors at this time
66 lines (63 sloc) 1.76 KB
name: Xenial.Blog
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
- uses: actions/setup-node@v1
with:
node-version: 12
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-rc.1.20452.10
- name: Install dependencies
run: dotnet restore build/build.csproj
- name: Build
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
- uses: actions/download-artifact@v2
with:
name: _site
path: _site/
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.100-rc.1.20452.10
- 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.delegate.at
env:
FTP_HOST: ${{secrets.FTP_HOST}}
FTP_PASS: ${{secrets.FTP_PASS}}
FTP_USER: ${{secrets.FTP_USER}}
FTP_DIRECTORY: "/blog"
run: dotnet run --project build/build.csproj deploy
You can’t perform that action at this time.