-
Notifications
You must be signed in to change notification settings - Fork 52
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
Showing
14 changed files
with
77 additions
and
118 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
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
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
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 |
---|---|---|
|
@@ -17,64 +17,42 @@ jobs: | |
- name: Log Branch | ||
run: | | ||
echo "Branch: ${{ inputs.checkout-ref }}" | ||
- name: Configure AWS CLI | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: eu-west-2 | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.checkout-ref }} | ||
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Login to AWS CodeArtifact | ||
run: | | ||
aws codeartifact login --tool dotnet --repository ${{ secrets.AWS_CODEARTIFACT_REPOSITORY }} --domain ${{ secrets.AWS_CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.AWS_CODEARTIFACT_ACCOUNT_NUMBER }} | ||
dotnet-version: 8.0.x | ||
- name: Restore | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
target: Restore | ||
- name: Build | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
target: Build-CI | ||
target: Build | ||
arguments: | | ||
versionNumber: ${{inputs.version}} | ||
- name: Run tests | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
target: Test-CI | ||
target: Test | ||
- name: Publish Unit Test Results | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
uses: EnricoMi/publish-unit-test-result-action/composite@v2 | ||
with: | ||
files: "**/TestResults/*.xml" | ||
- name: Build NuGet Package - AfterLife.Domain | ||
- name: Build NuGet Package | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
target: Pack-CI | ||
target: Pack | ||
arguments: | | ||
versionNumber: ${{inputs.version}} | ||
- name: Build NuGet Package - AfterLife.Domain.Fixtures | ||
uses: cake-build/cake-action@v1 | ||
with: | ||
target: Pack-CI | ||
arguments: | | ||
projectName: AfterLife.Domain.Fixtures | ||
versionNumber: ${{inputs.version}} | ||
- name: Upload Package - AfterLife.Domain | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: AfterLife.Domain | ||
path: ./nuget-publish/AfterLife.Domain/*.nupkg | ||
- name: Upload Package - AfterLife.Domain.Fixtures | ||
- name: Upload Package | ||
if: ${{ github.actor != 'dependabot[bot]' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: AfterLife.Domain.Fixtures | ||
path: ./nuget-publish/AfterLife.Domain.Fixtures/*.nupkg | ||
name: Html2Markdown | ||
path: ./src/Html2Markdown/bin/Release/*.nupkg |
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,12 @@ | ||
on: | ||
workflow_call: | ||
|
||
jobs: | ||
check-markdown: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: markdownlint-cli | ||
uses: nosborn/[email protected] | ||
with: | ||
files: . | ||
config_file: .markdownlint.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 |
---|---|---|
|
@@ -27,20 +27,11 @@ jobs: | |
uses: actions/download-artifact@v3 | ||
with: | ||
name: ${{ inputs.package-name }} | ||
path: ./nuget-publish | ||
- name: Configure AWS CLI | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
aws-region: eu-west-2 | ||
path: ./src/Html2Markdown/bin/Release | ||
- name: Setup .NET Core | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: 7.0.x | ||
- name: Login to AWS CodeArtifact | ||
run: | | ||
aws codeartifact login --tool dotnet --repository ${{ secrets.AWS_CODEARTIFACT_REPOSITORY }} --domain ${{ secrets.AWS_CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.AWS_CODEARTIFACT_ACCOUNT_NUMBER }} | ||
dotnet-version: 8.0.x | ||
- name: Push package to NuGet | ||
run: | | ||
dotnet nuget push $(find ./nuget-publish/*.nupkg) --source $(aws codeartifact get-repository-endpoint --repository ${{ secrets.AWS_CODEARTIFACT_REPOSITORY }} --domain ${{ secrets.AWS_CODEARTIFACT_DOMAIN }} --domain-owner ${{ secrets.AWS_CODEARTIFACT_ACCOUNT_NUMBER }} --format nuget --query repositoryEndpoint --output text)v3/index.json | ||
dotnet nuget push $(find ./src/Html2Markdown/bin/Release/*.nupkg) --api-key ${{ secrets.NUGET_API_KEY }} --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
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,8 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] |
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.
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,6 @@ | ||
{ | ||
"major": "5", | ||
"minor": "1", | ||
"patch": "0", | ||
"build": "0" | ||
} |
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