-
-
Notifications
You must be signed in to change notification settings - Fork 494
36 lines (33 loc) · 1.03 KB
/
test-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
name: Test build
on:
workflow_dispatch:
inputs:
ref:
description: Commit name (defaults to master)
required: false
target:
description: Command line
required: true
default: ResolveVersion --verbose
jobs:
release:
name: Test build
runs-on: ubuntu-latest
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
steps:
- name: Checkout the repository
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.inputs.ref }}
- name: Install GitVersion.Tool
run: dotnet tool install --global GitVersion.Tool
- name: Build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TWITTER_ACCESS_TOKEN: ${{ secrets.TWITTER_ACCESS_TOKEN }}
TWITTER_ACCESS_TOKEN_SECRET: ${{ secrets.TWITTER_ACCESS_TOKEN_SECRET }}
TWITTER_CONSUMER_API_KEY: ${{ secrets.TWITTER_CONSUMER_API_KEY }}
TWITTER_CONSUMER_API_SECRET: ${{ secrets.TWITTER_CONSUMER_API_SECRET }}
run: ./build.sh ${{ github.event.inputs.target }}