-
-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (33 loc) · 1.27 KB
/
manual.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
# This is a basic workflow that is manually triggered
name: Manual workflow
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Change LicenseKey
working-directory: ./tests
run: |
sed -i 's/Thank you for supporting open source projects/${{secrets.LICENSE_KEY}}/g' MoreDateTime.Test/AssemblyInitialize.cs
- name: Restore dependencies
working-directory: .
run: dotnet restore
- name: Build
working-directory: .
run: dotnet build --configuration Release --no-restore
- name: Test
working-directory: .
run: |
dotnet test --configuration Release --no-restore --no-build --verbosity normal
- name: Push Github package
run: |
dotnet nuget add source --username Hefaistos68 --password ${{ secrets.GH_PACLAGE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Hefaistos68/index.json"
dotnet nuget push src/MoreDateTime/bin/Release/*.nupkg --api-key ${{ secrets.GH_PACKAGE_TOKEN }} --source "github"