-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (62 loc) · 1.64 KB
/
bullseye-ci.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
# This was generated by tool. Edits will be overwritten.
name: bullseye-ci
on:
pull_request:
paths:
- .github/workflows/bullseye-**
- libs/bullseye**
- build/**
push:
branches:
- main
paths:
- .github/workflows/bullseye-**
- libs/bullseye**
- build/**
tags:
- bullseye-**
jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${secrets.GITHUB_TOKEN}
LOGICALITY_NUGET_ORG: ${secrets.LOGICALITY_NUGET_ORG}
WEBHOOKRELAYTOKENKEY: ${secrets.WEBHOOKRELAYTOKENKEY}
WEBHOOKRELAYTOKENSECRET: ${secrets.WEBHOOKRELAYTOKENSECRET}
WEBHOOKURL: ${secrets.WEBHOOKURL}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Log into GitHub Container Registry
run: echo "${{secrets.GITHUB_TOKEN}}" | docker login ghcr.io -u ${{github.actor}} --password-stdin
- name: Setup Dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Print Env
run: printenv
shell: bash
- name: Test
timeout-minutes: 5
run: ./build.ps1 bullseye-test
shell: pwsh
- name: Pack
run: ./build.ps1 bullseye-pack
shell: pwsh
- name: Push to GitHub
if: github.event_name == 'push'
continue-on-error: true
run: ./build.ps1 push-github
shell: pwsh
- name: Push to Nuget.org (on tag)
if: startsWith(github.ref, 'refs/tags/bullseye')
continue-on-error: true
run: ./build.ps1 push-nugetorg
shell: pwsh
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: artifacts
path: artifacts