From ea682c862c3da5dcad265e033c159b99a999207d Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Wed, 20 Dec 2023 12:06:26 +0100 Subject: [PATCH] fix --- .github/actions/nuget-release/action.yml | 2 +- .github/workflows/release.yml | 62 ++++++++++++++++++++++-- src/Auth0.OidcClient.Android/.version | 1 + src/Auth0.OidcClient.Core/.version | 1 + src/Auth0.OidcClient.UWP/.version | 1 + src/Auth0.OidcClient.WPF/.version | 1 + src/Auth0.OidcClient.WinForms/.version | 1 + 7 files changed, 63 insertions(+), 6 deletions(-) create mode 100644 src/Auth0.OidcClient.Android/.version create mode 100644 src/Auth0.OidcClient.Core/.version create mode 100644 src/Auth0.OidcClient.UWP/.version create mode 100644 src/Auth0.OidcClient.WPF/.version create mode 100644 src/Auth0.OidcClient.WinForms/.version diff --git a/.github/actions/nuget-release/action.yml b/.github/actions/nuget-release/action.yml index c330e360..7711541a 100644 --- a/.github/actions/nuget-release/action.yml +++ b/.github/actions/nuget-release/action.yml @@ -34,7 +34,7 @@ runs: if: false uses: ./.github/actions/get-release-notes with: - token: ${{ secrets.github-token }} + token: ${{ inputs.github-token }} version: ${{ inputs.tag-prefix }}${{ steps.get_version.outputs.version }} repo_owner: ${{ github.repository_owner }} repo_name: ${{ github.event.repository.name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d7e70228..a1c56a02 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -145,6 +145,28 @@ jobs: nuget-token: ${{ secrets.NUGET_APIKEY }} github-token: ${{ secrets.GITHUB_TOKEN }} + android: + name: Android + uses: ./.github/workflows/nuget-release.yml + needs: build + with: + tag-prefix: 'android-' + project-path: "src/Auth0.OidcClient.Android" + secrets: + nuget-token: ${{ secrets.NUGET_APIKEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + androidx: + name: AndroidX + uses: ./.github/workflows/nuget-release.yml + needs: build + with: + tag-prefix: 'androidx-' + project-path: "src/Auth0.OidcClient.AndroidX" + secrets: + nuget-token: ${{ secrets.NUGET_APIKEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + ios: name: iOS uses: ./.github/workflows/nuget-release.yml @@ -155,6 +177,7 @@ jobs: secrets: nuget-token: ${{ secrets.NUGET_APIKEY }} github-token: ${{ secrets.GITHUB_TOKEN }} + core: name: Core uses: ./.github/workflows/nuget-release.yml @@ -166,23 +189,52 @@ jobs: nuget-token: ${{ secrets.NUGET_APIKEY }} github-token: ${{ secrets.GITHUB_TOKEN }} - # Deploy job + wpf: + name: WPF + uses: ./.github/workflows/nuget-release.yml + needs: build + with: + tag-prefix: 'wpf-' + project-path: "src/Auth0.OidcClient.WPF" + secrets: + nuget-token: ${{ secrets.NUGET_APIKEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + + winforms: + name: WinForms + uses: ./.github/workflows/nuget-release.yml + needs: build + with: + tag-prefix: 'winforms-' + project-path: "src/Auth0.OidcClient.WinForms" + secrets: + nuget-token: ${{ secrets.NUGET_APIKEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + + uwp: + name: UWP + uses: ./.github/workflows/nuget-release.yml + needs: build + with: + tag-prefix: 'uwp-' + project-path: "src/Auth0.OidcClient.UWP" + secrets: + nuget-token: ${{ secrets.NUGET_APIKEY }} + github-token: ${{ secrets.GITHUB_TOKEN }} + deploy-docs: - # Add a dependency to publish-nuget job needs: generate-docs name: Deploy API docs - # Grant GITHUB_TOKEN the permissions required to make a Pages deployment permissions: pages: write # to deploy to Pages id-token: write # to verify the deployment originates from an appropriate source - # Deploy to the github-pages environment environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} - # Specify runner + deployment step runs-on: ubuntu-latest steps: - name: Deploy to GitHub Pages diff --git a/src/Auth0.OidcClient.Android/.version b/src/Auth0.OidcClient.Android/.version new file mode 100644 index 00000000..0c89fc92 --- /dev/null +++ b/src/Auth0.OidcClient.Android/.version @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file diff --git a/src/Auth0.OidcClient.Core/.version b/src/Auth0.OidcClient.Core/.version new file mode 100644 index 00000000..0c89fc92 --- /dev/null +++ b/src/Auth0.OidcClient.Core/.version @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file diff --git a/src/Auth0.OidcClient.UWP/.version b/src/Auth0.OidcClient.UWP/.version new file mode 100644 index 00000000..0c89fc92 --- /dev/null +++ b/src/Auth0.OidcClient.UWP/.version @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file diff --git a/src/Auth0.OidcClient.WPF/.version b/src/Auth0.OidcClient.WPF/.version new file mode 100644 index 00000000..0c89fc92 --- /dev/null +++ b/src/Auth0.OidcClient.WPF/.version @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file diff --git a/src/Auth0.OidcClient.WinForms/.version b/src/Auth0.OidcClient.WinForms/.version new file mode 100644 index 00000000..0c89fc92 --- /dev/null +++ b/src/Auth0.OidcClient.WinForms/.version @@ -0,0 +1 @@ +4.0.0 \ No newline at end of file