-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (50 loc) · 1.55 KB
/
Copy pathmain.yml
File metadata and controls
56 lines (50 loc) · 1.55 KB
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
# Action Name
name: Main Automated Builds
# When the Action will Run
on:
push:
branches:
- main
tags:
- '*.*.*'
pull_request:
permissions: {}
# Workflow Jobs
jobs:
build:
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Build
uses: ricado-group/dotnet-library-build-release-action@v2
with:
project-name: 'RICADO.Extensions.MySqlConnector'
github-token: ${{ secrets.GITHUB_TOKEN }}
private-nuget-url: 'https://nuget.pkg.github.com/ricado-group/index.json'
private-nuget-token: ${{ secrets.GH_PACKAGES_PAT }}
public-nuget-user: ${{ vars.NUGET_USER }}
publish-public: false
dotnet-version: 10.0.x
publish:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v6
- name: Build and Publish
uses: ricado-group/dotnet-library-build-release-action@v2
with:
project-name: 'RICADO.Extensions.MySqlConnector'
github-token: ${{ secrets.GITHUB_TOKEN }}
private-nuget-url: 'https://nuget.pkg.github.com/ricado-group/index.json'
private-nuget-token: ${{ secrets.GH_PACKAGES_PAT }}
public-nuget-user: ${{ vars.NUGET_USER }}
publish-public: true
dotnet-version: 10.0.x