Skip to content

Commit

Permalink
chore: add package CI
Browse files Browse the repository at this point in the history
  • Loading branch information
doddgu committed Nov 23, 2021
1 parent 8a475bb commit 4e44ac7
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/packge_push_nuget.org.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Packege CI
on:
create:
ref_type: [ tag ]
# push:
# branches: [ develop ]
# pull_request:
# branches: [ develop ]
workflow_dispatch:

jobs:
packeg-build:
name: packeg build and push
runs-on: ${{matrix.os}}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macOS-latest]
os: [ubuntu-latest]
steps:
- name: git pull
uses: actions/checkout@v2
- name: run a one-line script
run: env
- name: setting dotnet version
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: package push
run: |
env
echo "------------------------------------------------------"
ls
dotnet build
dotnet pack --include-symbols -p:PackageVersion=0.0.$GITHUB_RUN_ID
dotnet nuget push "**/*.symbols.nupkg" -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json

0 comments on commit 4e44ac7

Please sign in to comment.