Bump System.Text.Json from 4.7.1 to 8.0.4 in /src/AutoStep #290
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
name: AutoStep Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Fetch tags for GitVersion | |
run: git fetch --tags | |
- name: Fetch master for GitVersion | |
if: github.ref != 'refs/heads/master' | |
run: git branch --create-reflog master origin/master | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.100 | |
- name: GitVersion | |
id: gitversion # step id used as reference for output values | |
uses: roryprimrose/[email protected] | |
- name: Build with dotnet | |
run: dotnet build --configuration Release | |
- name: Run tests | |
run: dotnet test --configuration Release --no-build | |
- name: Pack | |
run: dotnet pack ./src/AutoStep/AutoStep.csproj --no-build -o artifacts -c Release --version-suffix ${{ steps.gitversion.outputs.PreReleaseTag }} | |
- name: Push | |
run: dotnet nuget push artifacts/* -s https://f.feedz.io/autostep/ci/nuget/index.json -k ${{ secrets.FEEDZ_IO_KEY }} | |
build-docs: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: Install Docfx | |
uses: crazy-max/[email protected] | |
with: | |
# Arguments to pass to Chocolatey | |
args: install docfx -y | |
- name: Build Metadata | |
working-directory: docs | |
run: docfx metadata | |
- name: Build Docs | |
working-directory: docs | |
run: docfx build | |
- name: Store Docs | |
uses: actions/upload-artifact@v1 | |
with: | |
name: docs | |
path: docs/_site |