Skip to content

Commit

Permalink
release/4.1.0 - Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kailash-b committed Jan 10, 2025
1 parent 9d8a3bb commit 8de5515
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 148 deletions.
293 changes: 147 additions & 146 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Create NuGet and GitHub Release

on:
pull_request:
types:
- closed
pull_request: {}

push:
branches: ["master"]
workflow_dispatch:

permissions:
Expand All @@ -19,7 +20,7 @@ jobs:
name: Build
runs-on: windows-latest
environment: 'release'
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
# if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/'))
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -179,146 +180,146 @@ jobs:
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}

android:
name: Android
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'android-'
project-path: "src/Auth0.OidcClient.Android"
nuspec-file: "nuget/Auth0.OidcClient.Android.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

androidx:
name: AndroidX
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'androidx-'
project-path: "src/Auth0.OidcClient.AndroidX"
nuspec-file: "nuget/Auth0.OidcClient.AndroidX.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

ios:
name: iOS
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'ios-'
project-path: "src/Auth0.OidcClient.iOS"
nuspec-file: "nuget/Auth0.OidcClient.iOS.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

core:
name: Core
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'core-'
project-path: "src/Auth0.OidcClient.Core"
nuspec-file: "nuget/Auth0.OidcClient.Core.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

wpf:
name: WPF
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'wpf-'
project-path: "src/Auth0.OidcClient.WPF"
nuspec-file: "nuget/Auth0.OidcClient.WPF.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}
# android:
# name: Android
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'android-'
# project-path: "src/Auth0.OidcClient.Android"
# nuspec-file: "nuget/Auth0.OidcClient.Android.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# androidx:
# name: AndroidX
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'androidx-'
# project-path: "src/Auth0.OidcClient.AndroidX"
# nuspec-file: "nuget/Auth0.OidcClient.AndroidX.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# ios:
# name: iOS
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'ios-'
# project-path: "src/Auth0.OidcClient.iOS"
# nuspec-file: "nuget/Auth0.OidcClient.iOS.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# core:
# name: Core
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'core-'
# project-path: "src/Auth0.OidcClient.Core"
# nuspec-file: "nuget/Auth0.OidcClient.Core.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# wpf:
# name: WPF
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'wpf-'
# project-path: "src/Auth0.OidcClient.WPF"
# nuspec-file: "nuget/Auth0.OidcClient.WPF.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

winforms:
name: WinForms
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'winforms-'
project-path: "src/Auth0.OidcClient.WinForms"
nuspec-file: "nuget/Auth0.OidcClient.WinForms.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

uwp:
name: UWP
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'uwp-'
project-path: "src/Auth0.OidcClient.UWP"
nuspec-file: "nuget/Auth0.OidcClient.UWP.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

maui:
name: MAUI
uses: ./.github/workflows/nuget-release.yml
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
with:
tag-prefix: 'maui-'
project-path: "src/Auth0.OidcClient.MAUI"
nuspec-file: "nuget/Auth0.OidcClient.MAUI.nuspec"
secrets:
nuget-token: ${{ secrets.NUGET_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}

generate-docs:
name: Generate API docs
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: windows-latest
environment: release
needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]

steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/download-artifact@v4
with:
path: './src'
name: build

- name: Install DocFX
run: dotnet tool install -g docfx

- name: Build docs
run: ./tools/build-docs.sh
shell: bash

- uses: actions/upload-pages-artifact@v2
with:
path: docs

deploy-docs:
needs: generate-docs
name: Deploy API docs
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))

permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3 # or specific "vX.X.X" version tag for this action
# winforms:
# name: WinForms
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'winforms-'
# project-path: "src/Auth0.OidcClient.WinForms"
# nuspec-file: "nuget/Auth0.OidcClient.WinForms.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# uwp:
# name: UWP
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'uwp-'
# project-path: "src/Auth0.OidcClient.UWP"
# nuspec-file: "nuget/Auth0.OidcClient.UWP.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# maui:
# name: MAUI
# uses: ./.github/workflows/nuget-release.yml
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]
# with:
# tag-prefix: 'maui-'
# project-path: "src/Auth0.OidcClient.MAUI"
# nuspec-file: "nuget/Auth0.OidcClient.MAUI.nuspec"
# secrets:
# nuget-token: ${{ secrets.NUGET_API_KEY }}
# github-token: ${{ secrets.GITHUB_TOKEN }}

# generate-docs:
# name: Generate API docs
# if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
# runs-on: windows-latest
# environment: release
# needs: [rl-scanner-android,rl-scanner-androidx,rl-scanner-iOS,rl-scanner-core,rl-scanner-wpf,rl-scanner-winforms,rl-scanner-uwp,rl-scanner-maui]

# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - uses: actions/download-artifact@v4
# with:
# path: './src'
# name: build

# - name: Install DocFX
# run: dotnet tool install -g docfx

# - name: Build docs
# run: ./tools/build-docs.sh
# shell: bash

# - uses: actions/upload-pages-artifact@v2
# with:
# path: docs

# deploy-docs:
# needs: generate-docs
# name: Deploy API docs
# if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))

# permissions:
# pages: write # to deploy to Pages
# id-token: write # to verify the deployment originates from an appropriate source

# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

# runs-on: ubuntu-latest
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v3 # or specific "vX.X.X" version tag for this action
7 changes: 5 additions & 2 deletions .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ on:
jobs:
rl-scanner:
name: Run Reversing Labs scanner
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
# if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: ubuntu-latest
outputs:
scan-status: ${{ steps.rl-scan-conclusion.outcome }}
Expand All @@ -45,7 +45,10 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.404'


- name: Setup NuGet
uses: nuget/setup-nuget@v1

- uses: actions/download-artifact@v4
with:
path: './src'
Expand Down

0 comments on commit 8de5515

Please sign in to comment.