generated from pulumi/pulumi-provider-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
691bb9b
commit 138e677
Showing
1 changed file
with
3 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 |