Skip to content
This repository was archived by the owner on Mar 1, 2021. It is now read-only.

Commit f741bc3

Browse files
authored
(GH-27) Add workflow to build on GHA
1 parent 3f9af1a commit f741bc3

File tree

1 file changed

+70
-0
lines changed

1 file changed

+70
-0
lines changed

.github/workflows/build.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
paths-ignore:
6+
- "README.md"
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}
12+
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
13+
strategy:
14+
matrix:
15+
os: [windows-latest, ubuntu-latest, macos-latest]
16+
17+
env:
18+
AZURE_PASSWORD: ${{ secrets.AZURE_PASSWORD }}
19+
AZURE_SOURCE: ${{ secrets.AZURE_SOURCE }}
20+
AZURE_USER: ${{ secrets.AZURE_USER }}
21+
GITHUB_PAT: ${{ secrets.GH_TOKEN }}
22+
GITTER_ROOM_ID: ${{ secrets.GITTER_ROOM_ID }}
23+
GPR_PASSWORD: ${{ secrets.GPR_PASSWORD }}
24+
GPR_SOURCE: ${{ secrets.GPR_SOURCE }}
25+
GPR_USER: ${{ secrets.GPR_USER }}
26+
GITTER_TOKEN: ${{ secrets.GITTER_TOKEN }}
27+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
28+
NUGET_SOURCE: "https://api.nuget.org/v3/index.json"
29+
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
30+
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
31+
TWITTER_CONSUMER_KEY: ${{ secrets.TWITTER_CONSUMER_KEY }}
32+
TWITTER_CONSUMER_SECRET: ${{ secrets.TWITTER_CONSUMER_SECRET }}
33+
WYAM_ACCESS_TOKEN: ${{ secrets.WYAM_ACCESS_TOKEN }}
34+
WYAM_DEPLOY_BRANCH: "gh-pages"
35+
WYAM_DEPLOY_REMOTE: ${{ github.event.repository.html_url }}
36+
steps:
37+
- name: Checkout the repository
38+
uses: actions/checkout@v2
39+
40+
- name: Fetch all tags and branches
41+
run: git fetch --prune --unshallow
42+
43+
- name: Cache Tools
44+
uses: actions/cache@v2
45+
with:
46+
path: tools
47+
key: ${{ runner.os }}-tools-${{ hashFiles('recipe.cake') }}
48+
49+
- name: Build project
50+
uses: cake-build/cake-action@v1
51+
with:
52+
script-path: recipe.cake
53+
target: CI
54+
verbosity: Normal
55+
cake-version: 0.38.5
56+
cake-bootstrap: true
57+
58+
- name: Upload Issues-Report
59+
uses: actions/upload-artifact@v2
60+
with:
61+
if-no-files-found: warn
62+
name: issues
63+
path: BuildArtifacts/report.html
64+
65+
- name: Upload Packages
66+
uses: actions/upload-artifact@v2
67+
with:
68+
if-no-files-found: warn
69+
name: package
70+
path: BuildArtifacts/Packages/**/*

0 commit comments

Comments
 (0)