-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 933 Bytes
/
main.yml
File metadata and controls
40 lines (34 loc) · 933 Bytes
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
name: Build and Test Main Line
on:
push:
branches:
- main
- alpha
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Debug Action Contexts
uses: henrygriffiths/debug_action@v1
with:
secrets_context: ${{ toJson(secrets) }}
needs_context: ${{ toJson(needs) }}
- uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.x
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm ci
- run: |
dotnet nuget add source --username gh-actions \
--password ${{ secrets.GITHUB_TOKEN }} \
--store-password-in-clear-text \
--name github "https://nuget.pkg.github.com/omnicave/index.json"
- run: ./node_modules/.bin/semantic-release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}