File tree Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Expand file tree Collapse file tree 4 files changed +33
-19
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish NuGet Packages
2
+
3
+ on :
4
+ release :
5
+ types : [published]
6
+
7
+ jobs :
8
+ package-nuget :
9
+ runs-on : windows-latest
10
+ if : ${{ github.repository == 'twbs/bootstrap' && startsWith(github.event.release.tag_name, 'v') }}
11
+ env :
12
+ GITHUB_REF_NAME : ${{ github.ref_name }}
13
+ steps :
14
+ - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
15
+ with :
16
+ persist-credentials : false
17
+
18
+ - name : Set up NuGet
19
+ uses : nuget/setup-nuget@323ab0502cd38fdc493335025a96c8fdb0edc71f # v2.0.1
20
+ with :
21
+ nuget-api-key : ${{ secrets.NuGetAPIKey }}
22
+ nuget-version : ' 5.x'
23
+
24
+ - name : Pack NuGet packages
25
+ shell : pwsh
26
+ run : |
27
+ $bsversion = $env:GITHUB_REF_NAME.Substring(1)
28
+ nuget pack "nuget\bootstrap.nuspec" -Verbosity detailed -NonInteractive -BasePath . -Version $bsversion
29
+ nuget pack "nuget\bootstrap.sass.nuspec" -Verbosity detailed -NonInteractive -BasePath . -Version $bsversion
30
+ nuget push "bootstrap.$bsversion.nupkg" -Verbosity detailed -NonInteractive -Source "https://api.nuget.org/v3/index.json"
31
+ nuget push "bootstrap.sass.$bsversion.nupkg" -Verbosity detailed -NonInteractive -Source "https://api.nuget.org/v3/index.json"
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 2
2
<package xmlns =" http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd" >
3
3
<metadata >
4
4
<id >bootstrap</id >
5
- <!-- pulled from package.json -->
5
+ <!-- pulled from release tag -->
6
6
<version >5</version >
7
7
<title >Bootstrap CSS</title >
8
8
<authors >The Bootstrap Authors</authors >
Original file line number Diff line number Diff line change 2
2
<package xmlns =" http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd" >
3
3
<metadata >
4
4
<id >bootstrap.sass</id >
5
- <!-- pulled from package.json -->
5
+ <!-- pulled from release tag -->
6
6
<version >5</version >
7
7
<title >Bootstrap Sass</title >
8
8
<authors >The Bootstrap Authors</authors >
You can’t perform that action at this time.
0 commit comments