Skip to content

Commit

Permalink
added CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
AntyaDev committed Jan 11, 2024
1 parent 498f82a commit c4c4162
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: build

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.x.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore
- name: Test
run: dotnet test --no-build --verbosity normal
23 changes: 23 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: deploy

on:
push:
branches: [ "main" ]

jobs:
deploy:
environment: PROD
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.x.x
- name: Restore dependencies
run: dotnet restore
- name: Pack
run: dotnet pack src/NBomber.WebSockets/NBomber.WebSockets.fsproj -c Release -o artifacts --include-source
- name: Publish
run: dotnet nuget push artifacts/**.nupkg -s https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_TOKEN }}

0 comments on commit c4c4162

Please sign in to comment.