diff --git a/.github/workflows/dotnet.yaml b/.github/workflows/dotnet.yaml index 7d10b89..ed3674e 100644 --- a/.github/workflows/dotnet.yaml +++ b/.github/workflows/dotnet.yaml @@ -138,37 +138,37 @@ jobs: # - uses: actions/checkout@v4 # - uses: gaurav-nelson/github-action-markdown-link-check@v1 - # nuget-publish: - # runs-on: ubuntu-latest - # if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }} - # needs: [all-required-checks-complete] - # environment: release - # steps: - # - name: Download NuGet artifact - # uses: actions/download-artifact@v4 - # with: - # name: nuget-package - # - name: Publish to NuGet - # run: dotnet nuget push "ShapeSifter.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json + nuget-publish: + runs-on: ubuntu-latest + if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }} + needs: [all-required-checks-complete] + environment: release + steps: + - name: Download NuGet artifact + uses: actions/download-artifact@v4 + with: + name: nuget-package + - name: Publish to NuGet + run: dotnet nuget push "ShapeSifter.*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json - # github-tag-and-release: - # runs-on: ubuntu-latest - # if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }} - # needs: [all-required-checks-complete] - # environment: release - # steps: - # - name: Generate app token - # id: app-token - # uses: actions/create-github-app-token@v1 - # with: - # app-id: ${{ secrets.APP_ID }} - # private-key: ${{ secrets.APP_PRIVATE_KEY }} - # - uses: actions/checkout@v4 - # with: - # token: ${{ steps.app-token.outputs.token }} - # - name: Download NuGet artifact - # uses: actions/download-artifact@v4 - # - name: Tag and release packages - # env: - # GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} - # run: bash .github/workflows/tag.sh + github-tag-and-release: + runs-on: ubuntu-latest + if: ${{ !github.event.repository.fork && github.ref == 'refs/heads/main' }} + needs: [all-required-checks-complete] + environment: release + steps: + - name: Generate app token + id: app-token + uses: actions/create-github-app-token@v1 + with: + app-id: ${{ secrets.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - uses: actions/checkout@v4 + with: + token: ${{ steps.app-token.outputs.token }} + - name: Download NuGet artifact + uses: actions/download-artifact@v4 + - name: Tag and release packages + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} + run: bash .github/workflows/tag.sh diff --git a/ShapeSifter/version.json b/ShapeSifter/version.json index 073223b..2e87e59 100644 --- a/ShapeSifter/version.json +++ b/ShapeSifter/version.json @@ -1,5 +1,5 @@ { - "version": "0.3", + "version": "1.0", "publicReleaseRefSpec": [ "^refs/heads/main$" ]