Skip to content

Commit 6a182a4

Browse files
committed
amend
1 parent 9ce8926 commit 6a182a4

File tree

2 files changed

+78
-0
lines changed

2 files changed

+78
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
## Describe the issue
11+
A clear and concise description of what the bug is.
12+
13+
## Steps to reproduce the behavior
14+
1. Go to '...'
15+
2. Click on '....'
16+
3. Scroll down to '....'
17+
4. See error
18+
19+
## Actual result
20+
21+
## Expected behavior
22+
A clear and concise description of what you expected to happen.
23+
24+
## Where does it happen
25+
=> add Labels (on the right of this window, section "Labels")
26+
OS version:
27+
28+
## Additional context, Screenshots
29+
Add any other context about the problem here.
30+
If applicable, add screenshots to help explain your problem.

.github/workflows/main.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Publish To Nuget
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: windows-latest
12+
environment: Default
13+
env:
14+
NUPKG_MAJOR: 2.2.0
15+
DOTNET_CLI_TELEMETRY_OPTOUT: true
16+
DOTNET_NOLOGO: true
17+
PROJECT: src\SQLite.Net\SQLite.Net2.csproj
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Setup .NET
23+
uses: actions/setup-dotnet@v4
24+
with:
25+
dotnet-version: 9.0.x
26+
27+
- name: Build
28+
shell: pwsh
29+
run: dotnet build -c Release $env:PROJECT
30+
31+
- name: Package NuGets
32+
shell: pwsh
33+
env:
34+
#required so if it contains special characters they are not interpreted by powershell
35+
NUGET_AUTH_TOKEN: ${{secrets.NUGETAPIKEY}}
36+
NUGET_TARGET: https://api.nuget.org/v3/index.json
37+
run: |
38+
$VERSION="$env:NUPKG_MAJOR-ci$env:GITHUB_RUN_ID"
39+
if ($env:GITHUB_EVENT_NAME -eq "release") {
40+
$VERSION = $env:GITHUB_REF.Substring($env:GITHUB_REF.LastIndexOf('/') + 1)
41+
}
42+
echo "PACKAGE VERSION: $VERSION"
43+
New-Item -ItemType Directory -Force -Path .\artifacts
44+
45+
dotnet pack --no-build --output ./artifacts -c Release -p:PackageVersion=$VERSION $env:PROJECT
46+
# needs to CD because nuget push can't find nuget packages with a linux style path
47+
cd ./artifacts
48+
dotnet nuget push *.nupkg --skip-duplicate -k $env:NUGET_AUTH_TOKEN -s $env:NUGET_TARGET

0 commit comments

Comments
 (0)