-
-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (39 loc) · 1.38 KB
/
build.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
name: Build
on:
push:
branches: [master, develop]
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-2019, ubuntu-18.04, macos-11]
env:
GITHUB_TOKEN: ${{ secrets.DRAFT_TOKEN }}
FEEDZ_SOURCE: "https://f.feedz.io/wormiecorp/packages/nuget/index.json"
FEEDZ_API_KEY: ${{ secrets.FEEDZ_API_KEY }}
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_API_KEY }}
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_API_KEY_SECRET }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
WYAM_DEPLOY_REMOTE: "${{ github.event.repository.html_url }}"
WYAM_DEPLOY_BRANCH: "gh-pages"
steps:
- uses: actions/[email protected]
if: ${{ github.event.action != 'published' }}
with:
fetch-depth: 0
- name: Cache Tools
uses: actions/cache@v2
with:
path: tools
key: ${{ runner.os }}-tools-${{ hashFiles('build.cake') }}
- name: Build project (Windows)
if: matrix.os == 'windows-2019'
run: ./build.ps1 --verbosity=Diagnostic --target=CI
shell: pwsh
- name: Build project (Unix)
if: matrix.os != 'windows-2019'
run: ./build.sh --verbosity=Diagnostic --target=CI