Skip to content

⬆️ Update artifacts GitHub Action tasks #190

⬆️ Update artifacts GitHub Action tasks

⬆️ Update artifacts GitHub Action tasks #190

name: Build and release
on:
# Dev
workflow_dispatch:
pull_request:
push:
# Preview
branches: [ main ]
# Stable
tags: [ "v*" ]
jobs:
build:
name: "Build"
uses: ./.github/workflows/build.yml
with:
dotnet_version: '8.0.101'
# Preview release on push to main only
# Stable release on version tag push only
deploy:
name: "Deploy"
if: github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v')
needs: build
uses: ./.github/workflows/deploy.yml
with:
dotnet_version: '8.0.101'
azure_nuget_feed: 'https://pkgs.dev.azure.com/benito356/NetDevOpsTest/_packaging/PleOps/nuget/v3/index.json'
secrets:
nuget_preview_token: "az" # as we use AzureDevOps, this is a required dummy value
nuget_stable_token: ${{ secrets.STABLE_NUGET_TOKEN }}
azure_nuget_token: ${{ secrets.AZURE_NUGET_TOKEN }}