Skip to content

Bump packages (#39) #51

Bump packages (#39)

Bump packages (#39) #51

name: Library deployment
on:
push:
tags:
- v*.*.*
defaults:
run:
shell: bash
jobs:
library-deployment:
name: Build and upload provider
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: sudo apt update && sudo apt install -y bash
- name: Check out repository code
uses: actions/checkout@main
- name: Treat repo as safe
run: git config --global --add safe.directory /__w/pulumi-spacelift/pulumi-spacelift
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: 1.21.x
- name: Install pulumictl
uses: jaxxstorm/action-install-gh-release@v1
with:
repo: pulumi/pulumictl
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install pulumi
uses: pulumi/actions@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 16.x
registry-url: https://registry.npmjs.org
- name: Install yarn
run: npm install --global yarn
- name: Setup DotNet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 3.1.301
- name: Setup DotNet ICU
run: sudo apt-get update && sudo apt-get install -y icu-devtools
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Print version
run: pulumictl get version
- name: Build SDKs
run: make build_sdks
- name: Set NPM auth token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Publish npm package.
run: cd sdk/nodejs/bin && npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Create NuGet config
run: cp nuget.config.template sdk/dotnet/nuget.config
- name: Publish dotnet package
run: cd sdk/dotnet && dotnet nuget push ${{github.workspace}}/sdk/dotnet/bin/Debug/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"