Skip to content

Commit

Permalink
chore: v0.1.0-alpha.0 [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
bencelang committed Mar 7, 2022
1 parent 9ea128c commit 520e99f
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 64 deletions.
29 changes: 6 additions & 23 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: build
on:
workflow_call:
inputs:
docs:
required: false
type: boolean

env:
DOTNET_NOLOGO: true
Expand All @@ -16,10 +12,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
Expand All @@ -28,21 +21,11 @@ jobs:
run: |
dotnet restore --locked-mode
dotnet build --no-restore --configuration Release
- name: docs
if: inputs.docs
uses: nikeee/docfx-action@v1.0.0
with:
args: ./docs/docfx.json
- uses: actions/cache@v2
id: restore-build
with:
path: |
./src
./test
key: ${{ github.sha }}
- uses: actions/cache@v2
if: inputs.docs
id: restore-docs
with:
path: ./docs/dist
key: ${{ github.sha }}
./src/*/bin
./src/*/obj
./test/*/bin
./test/*/obj
key: build-${{ github.sha }}
28 changes: 17 additions & 11 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,35 @@ on:
jobs:
build:
uses: ./.github/workflows/build.yml
with:
docs: true

docs:
generate:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/setup-dotnet@v1
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
dotnet-version: 6.0.102
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget
- uses: actions/cache@v2
id: restore-docs
with:
path: ./docs/dist
key: ${{ github.sha }}
path: |
./src/*/bin
./src/*/obj
./test/*/bin
./test/*/obj
key: build-${{ github.sha }}
- name: generate
uses: nikeee/docfx-action@v1.0.0
with:
args: ./docs/docfx.json
- name: publish
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
branch: gh-pages
folder: ./docs/dist
- name: artifacts
uses: actions/upload-artifact@v2
if: always()
- uses: actions/upload-artifact@v2
with:
name: docs
path: ./docs/dist
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
pr: ${{ github.event.number || 0 }}

scan:
if: github.event_name != 'push' && github.event_name != 'workflow_dispatch' || github.event.inputs.scan
if: (github.event_name != 'push' || startsWith(github.ref, 'refs/tags/v')) && (github.event_name != 'workflow_dispatch' || github.event.inputs.scan)
needs: build
uses: ./.github/workflows/scan.yml
permissions:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget
- uses: actions/cache@v2
id: restore-build
with:
path: |
./src
./test
key: ${{ github.sha }}
./src/*/bin
./src/*/obj
./test/*/bin
./test/*/obj
key: build-${{ github.sha }}
- name: package
run: |
dotnet publish --no-build --configuration Release
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ jobs:
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
- name: verify
run: |
echo "Verifying release commit is the main branch"
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@ jobs:
security-events: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
- uses: github/codeql-action/init@v1
with:
languages: csharp
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget
- uses: actions/cache@v2
id: restore-build
with:
path: |
./src
./test
key: ${{ github.sha }}
./src/*/bin
./src/*/obj
./test/*/bin
./test/*/obj
key: build-${{ github.sha }}
- name: codeql
run: github/codeql-action/analyze@v1
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,24 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0.102
- uses: actions/cache@v1
- uses: actions/cache@v2
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
restore-keys: ${{ runner.os }}-nuget
- uses: actions/cache@v2
id: restore-build
with:
path: |
./src
./test
key: ${{ github.sha }}
./src/*/bin
./src/*/obj
./test/*/bin
./test/*/obj
key: build-${{ github.sha }}
- name: test
run: dotnet test --no-build --configuration Release --collect:"XPlat Code Coverage" --settings ./test/test.runsettings
- name: prepare
if: always()
working-directory: ./test/coverage
working-directory: test/coverage
run: |
echo "Preparing test results report..."
rm -rf $(basename -s .trx *.trx)
Expand Down
2 changes: 1 addition & 1 deletion src/QueryString/Avolantis.Text.QueryString.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<Title>Avolantis.Text.QueryString</Title>
<Product>Avolantis.Text.QueryString</Product>
<Version>0.1.0-preview.0</Version>
<Version>0.1.0-alpha.0</Version>
<PackageTags>query query-string filter serialization http rest</PackageTags>
<Description>QueryString handling and serialization for .NET 6</Description>
</PropertyGroup>
Expand Down

0 comments on commit 520e99f

Please sign in to comment.