From 138e67728130ec9b0b52ad3f984e88faef58f597 Mon Sep 17 00:00:00 2001 From: Dominik Przybyl Date: Sun, 19 May 2024 22:06:19 +0200 Subject: [PATCH] minor --- .github/workflows/release.yaml | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 62945aa..dc90208 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,12 +5,8 @@ on: - v*.*.* - '!v*.*.*-**' env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_REGISTRY_URL: https://registry.npmjs.org - NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }} NUGET_FEED_URL: https://api.nuget.org/v3/index.json - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} PYPI_USERNAME: "__token__" jobs: publish_binary: @@ -54,14 +50,6 @@ jobs: uses: actions/checkout@v4 - name: Unshallow clone for tags run: git fetch --prune --unshallow --tags - - name: Create new tag - id: create_tag - uses: mathieudutour/github-tag-action@v6.2 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - custom_tag: sdk/${{ github.ref_name }} - tag_prefix: "" - release_branches: main - name: Generate SDK run: make build - name: Compress SDK folder @@ -78,19 +66,19 @@ jobs: shell: bash - name: publish nuget package run: | - dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ env.NUGET_PUBLISH_KEY }} + dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg -s ${{ env.NUGET_FEED_URL }} -k ${{ secrets.NUGET_PUBLISH_KEY }} echo "done publishing packages" - name: Publish NPM package uses: JS-DevTools/npm-publish@v3 with: access: "public" - token: ${{ env.NPM_TOKEN }} + token: ${{ secrets.NPM_TOKEN }} package: ${{github.workspace}}/sdk/nodejs/bin/package.json - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: user: ${{ env.PYPI_USERNAME }} - password: ${{ env.PYPI_PASSWORD }} + password: ${{ secrets.PYPI_PASSWORD }} packages-dir: ${{github.workspace}}/sdk/python/bin/dist strategy: fail-fast: true