diff --git a/.github/workflows/auto_release.yaml b/.github/workflows/auto_release.yaml index ec79cab..e244ba8 100644 --- a/.github/workflows/auto_release.yaml +++ b/.github/workflows/auto_release.yaml @@ -32,11 +32,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - # with: - # # Use your GitHub Personal Access Token variable here. - # token: ${{ secrets.NUGET_KEY }} - # lfs: true - # submodules: 'recursive' + with: + # Use your GitHub Personal Access Token variable here. + token: ${{ secrets.NUGET_KEY }} + lfs: true + submodules: 'recursive' - name: Check Test Results id: tests @@ -76,6 +76,7 @@ jobs: if: needs.auto_release.outputs.should_release == 'true' secrets: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} - # GH_BASIC: ${{ secrets.GH_BASIC }} + GH_BASIC: ${{ secrets.GH_BASIC }} with: bump: patch +#994139c880db4bab879ae724ce1ac43b87c88e42 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b73f491..f54bf03 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -14,9 +14,9 @@ on: NUGET_API_KEY: description: "API key for Nuget" required: true - # GH_BASIC: - # description: "Personal access token (PAT) for GitHub" - # required: true + GH_BASIC: + description: "Personal access token (PAT) for GitHub" + required: true # Input unifies with the workflow dispatch since it's identical. inputs: bump: @@ -34,11 +34,11 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - # with: - # token: ${{ secrets.GH_BASIC }} - # lfs: true - # submodules: 'recursive' - # fetch-depth: 0 # So we can get all tags. + with: + token: ${{ secrets.GH_BASIC }} + lfs: true + submodules: 'recursive' + fetch-depth: 0 # So we can get all tags. - name: Read Current Project Version id: current-version @@ -82,14 +82,15 @@ jobs: package=$(find ./GodotHelper/nupkg -name "*.nupkg") echo "package=$package" >> "$GITHUB_OUTPUT" echo "Found package: $package" + echo "${{ steps.package-path.outputs.package }}" - # - name: Create Release - # env: - # GITHUB_TOKEN: ${{ secrets.GH_BASIC }} - # run: | - # version="${{ steps.next-version.outputs.version }}" - # gh release create --title "v$version" --generate-notes "$version" \ - # "${{ steps.package-path.outputs.package }}" + - name: Create Release + env: + GITHUB_TOKEN: ${{ secrets.GH_BASIC }} + run: | + version="${{ steps.next-version.outputs.version }}" + gh release create --title "v$version" --generate-notes "$version" \ + "${{ steps.package-path.outputs.package }}" - name: Publish to Nuget run: |