test #1
This file contains hidden or 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: Release | ||
on: | ||
push: | ||
branches: | ||
- 'release/**' | ||
- 'preview/**' | ||
# paths: | ||
# - 'src/**' | ||
workflow_call: | ||
permissions: | ||
actions: read | ||
jobs: | ||
global-variables: | ||
name: 'Global variables' | ||
runs-on: ubuntu-latest | ||
outputs: | ||
github-run-id: ${{ github.run_id }} | ||
github-run-number: ${{ github.run_number }} | ||
steps: | ||
- name: 'Global variables' | ||
id: github | ||
run: | | ||
echo "github-run-id:${{ github.run_id }}" | ||
echo "github-run-number:${{ github.run_number }}" | ||
validate: | ||
name: 'Validate' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: 'Checkout ${{ github.head_ref || github.ref }}' | ||
uses: actions/checkout@v4 | ||
- name: 'Validate warnings with .NET CLI' | ||
shell: bash | ||
run: dotnet format analyzers --severity warn --verify-no-changes | ||
build: | ||
name: Build | ||
uses: ./.github/workflows/build.yml | ||
Check failure on line 45 in .github/workflows/release.yml
|
||
publish-package: | ||
name: 'Publish' | ||
uses: ./.github/workflows/publish-nuget-package.yml | ||
needs: [global-variables, build] | ||
secrets: inherit | ||
with: | ||
artifact-run-id: ${{ needs.global-variables.outputs.github-run-id }} | ||
artifact-name: ${{ needs.build.outputs.package-artifact-name }} | ||
nuget-feed-server: 'NuGet' | ||
environment: 'NuGet' |