Skip to content

Commit 8ee2bfe

Browse files
Add action.
1 parent 8d4eaf1 commit 8ee2bfe

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Check Update
2+
concurrency: check
3+
4+
on:
5+
workflow_dispatch:
6+
schedule:
7+
# Automatically run on every Sunday
8+
- cron: '0 0 * * 0'
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4.2.2
16+
with:
17+
token: ${{ secrets.WORKFLOW_SECRET }}
18+
19+
- name: Check for Update
20+
uses: saadmk11/github-actions-version-updater@v0.8.1
21+
with:
22+
token: ${{ secrets.WORKFLOW_SECRET }}

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Nuget Build
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
pull_request:
8+
branches:
9+
- 'main'
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4.2.2
17+
18+
- name: setup dotnet
19+
uses: actions/setup-dotnet@v4.2.0
20+
with:
21+
dotnet-version: 8.0.x
22+
23+
- name: test
24+
run: |
25+
dotnet test --filter Category!=Dependencies
26+
27+
- name: pack
28+
run: |
29+
dotnet pack -c Release
30+
31+
- name: publish
32+
run: |
33+
dotnet nuget push **/*.nupkg --source 'https://api.nuget.org/v3/index.json' --skip-duplicate -k ${{ secrets.nuget }}

0 commit comments

Comments
 (0)