-
Notifications
You must be signed in to change notification settings - Fork 0
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
f0c2a5e
commit e439413
Showing
34 changed files
with
1,320 additions
and
1,628 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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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,62 @@ | ||
name: "Continuous Deployment" | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
|
||
env: | ||
PROJECT_PATH: "src/Ckode.Encryption/Ckode.Encryption.csproj" | ||
SOLUTION_PATH: "Ckode.Encryption.sln" | ||
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output | ||
NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json" | ||
|
||
jobs: | ||
test: | ||
name: "test" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install dotnet" | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: "Restore packages" | ||
run: dotnet restore ${{ env.SOLUTION_PATH }} | ||
|
||
- name: Test | ||
run: dotnet test ${{ env.SOLUTION_PATH }} | ||
|
||
deploy: | ||
needs: test | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install dotnet" | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: "Restore packages" | ||
run: dotnet restore ${{ env.SOLUTION_PATH }} | ||
|
||
- name: "Build project" | ||
run: dotnet build ${{ env.SOLUTION_PATH }} --no-restore --configuration Release | ||
|
||
- name: "Get version" | ||
id: version | ||
uses: bbonkr/get-version-action@v1.2.0 | ||
with: | ||
project: ${{ env.PROJECT_PATH }} | ||
|
||
- name: "Pack" | ||
run: dotnet pack ${{ env.PROJECT_PATH }} --no-restore --no-build --configuration Release --include-symbols -p:SymbolPackageFormat=snupkg -p:PackageVersion=${{ steps.version.outputs.version }} --output ${{ env.PACKAGE_OUTPUT_DIRECTORY }} | ||
|
||
- name: "Push package" | ||
run: dotnet nuget push ${{ env.PACKAGE_OUTPUT_DIRECTORY }}/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s ${{ env.NUGET_SOURCE_URL }} --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,33 @@ | ||
name: "Continuous Integration" | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" # matches every branch | ||
- "!main" # excludes main | ||
|
||
env: | ||
PROJECT_PATH: "src/Ckode.Encryption/Ckode.Encryption.csproj" | ||
SOLUTION_PATH: "Ckode.Encryption.sln" | ||
PACKAGE_OUTPUT_DIRECTORY: ${{ github.workspace }}\output | ||
NUGET_SOURCE_URL: "https://api.nuget.org/v3/index.json" | ||
|
||
jobs: | ||
test: | ||
name: "test" | ||
runs-on: "ubuntu-latest" | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/checkout@v3 | ||
|
||
- name: "Install dotnet" | ||
uses: actions/setup-dotnet@v2 | ||
with: | ||
dotnet-version: 7.0.x | ||
|
||
- name: "Restore packages" | ||
run: dotnet restore ${{ env.SOLUTION_PATH }} | ||
|
||
- name: Test | ||
run: dotnet test ${{ env.SOLUTION_PATH }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
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.