-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f2ef3b7
commit 523c287
Showing
6 changed files
with
168 additions
and
5 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,53 @@ | ||
name: Publish Package | ||
|
||
env: | ||
Version: 0.1.0 | ||
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
publish-and-deploy: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'ant-design-blazor' | ||
|
||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.101 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.100 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Package Nightly Nuget 📦 | ||
run: | | ||
npm i | ||
SUFFIX=`date "+%y%m%d%H%M%S"` | ||
dotnet build | ||
dotnet pack src/CssInCs.csproj /p:PackageVersion=$Version-nightly-${SUFFIX} -c Release -o publish | ||
- name: Publish to Nuget ✔ | ||
run: | | ||
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate |
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,39 @@ | ||
name: Pull Request Checks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.101 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.100 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Check Building ⚙ | ||
run: | | ||
npm i | ||
dotnet build |
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,52 @@ | ||
name: Release | ||
|
||
env: | ||
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}} | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
release-and-publish-package: | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'ant-design-blazor' | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.300 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 5.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.101 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 7.0.100 | ||
|
||
- uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 8.0.100 | ||
|
||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '10.x' | ||
|
||
- name: Package and publish to Nuget📦 | ||
run: | | ||
VERSION=`git describe --tags` | ||
echo "Publishing Version: ${VERSION}" | ||
npm install | ||
dotnet build | ||
rm -rf ./node_modules | ||
dotnet pack src/CssInCs.csproj /p:PackageVersion=$VERSION -c Release -o publish | ||
dotnet nuget push publish/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY --skip-duplicate |
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 |
---|---|---|
|
@@ -338,3 +338,5 @@ ASALocalRun/ | |
|
||
# BeatPulse healthcheck temp database | ||
healthchecksdb | ||
|
||
*.DotSettings |
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 was deleted.
Oops, something went wrong.