Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #50

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #50

Workflow file for this run

name: .NET
on:
push:
branches:
- '**'
tags-ignore:
- '**'
pull_request:
jobs:
pack:
runs-on: ubuntu-latest
services:
oracle:
image: gvenzl/oracle-xe:latest
env:
ORACLE_PASSWORD: oracle
# Forward Oracle port
ports:
- 1521:1521
# Provide healthcheck script options for startup
options: >-
--health-cmd healthcheck.sh
--health-interval 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v2
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build -c Release -v minimal -p:WarningLevel=3
- name: Test
run: dotnet test -c Release --no-build -v normal
- name: Pack
run: dotnet pack -c Release --no-build -o artifacts -p:NoWarn=NU5105
- name: Upload
uses: actions/upload-artifact@v2
with:
name: NuGet Package Files (ubuntu-latest)
path: artifacts
deployToMyGet:
name: Deploy to MyGet
runs-on: ubuntu-latest
needs: pack
if: github.event_name == 'push' && (github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/master')
steps:
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Download Package Files
uses: actions/[email protected]
with:
name: NuGet Package Files (ubuntu-latest)
path: artifacts
- name: Publish Package Files to MyGet
run: dotnet nuget push artifacts/*.nupkg -s https://www.myget.org/F/nettopologysuite/api/v3/index.json -k $MYGET_API_KEY
shell: bash
env:
MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }}
deployToNuGet:
name: Deploy to NuGet
runs-on: ubuntu-latest
needs: pack
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- name: Setup .NET 6
uses: actions/setup-dotnet@v4
with:
dotnet-version: '6.x'
- name: Download Package Files
uses: actions/[email protected]
with:
name: NuGet Package Files (ubuntu-latest)
path: artifacts
- name: Publish Package Files to NuGet
run: dotnet nuget push artifacts/*.nupkg -s https://api.nuget.org/v3/index.json -k $NUGET_API_KEY
shell: bash
env:
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}