Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #87
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: CI build | |
env: | |
OUTPUT_PATH: ${{ github.workspace }}/.nupkg | |
DOTNET_VERSION: "6.0.x" | |
GITHUB_SOURCE: "https://nuget.pkg.github.com/aaronpowell/index.json" | |
CONFIGURATION: "Debug" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Dotnet ${{ env.DOTNET_VERSION }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Restore dotnet tools | |
run: dotnet tool restore | |
- name: Generate packages | |
run: dotnet fake run ./build.fsx --target CI | |
- name: Publish release packages | |
uses: actions/upload-artifact@v3 | |
with: | |
name: packages | |
path: ${{ env.OUTPUT_PATH }} | |
publish-github: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
with: | |
name: packages | |
path: ${{ env.OUTPUT_PATH }} | |
- name: Setup .NET Core ${{ env.DOTNET_VERSION }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ env.DOTNET_VERSION }} | |
- name: Publish | |
run: dotnet nuget push --api-key ${{ secrets.GITHUB_TOKEN }} --source ${{ env.GITHUB_SOURCE }} "FSharp.CosmosDB*.nupkg" | |
working-directory: ${{ env.OUTPUT_PATH }} |