-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add CI autodeploy - update readme with nuget - add nuget package base file
- Loading branch information
Nick Ardecky
committed
Mar 5, 2020
1 parent
a28f2ad
commit 4618d65
Showing
6 changed files
with
1,077 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
|
||
# Name is optional and if present must be used | ||
# in the url path for badges | ||
name: Publish to NPM | ||
|
||
# only run when a release has been "published" | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
# publish to npm on release | ||
publish: | ||
name: NPM Publish | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
registry-url: https://registry.npmjs.org/ | ||
- run: npm install | ||
- run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
# Name is optional and if present must be used | ||
# in the url path for badges | ||
name: Publish to Nuget | ||
|
||
# only run when a release has been "published" | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
|
||
# publish to npm on release | ||
publish: | ||
name: Nuget Publish | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [12] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Pack nuget Package | ||
run: dotnet pack --configuration release | ||
- name: Push package to nuget | ||
run: dotnet nuget push **/*.nupkg --api-key ${{ secrets.NUGET_TOKEN }} --source https://api.nuget.org.v3/index.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ | |
ehthumbs.db | ||
Thumbs.db | ||
|
||
|
||
# Directories | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.