Git Product home page Git Product logo

pulumi-package-publisher's Introduction

pulumi-package-publisher

A composite action for publishing Pulumi packages

This Action is currently in preview and meant for internal use. Any functionality can and likely will change.

Purpose

This Action automates setup and publication to the package registries of four Pulumi languages.

Setup

Set the following environment variables in your Workflow and your GitHub Action secrets:

env:
    DOTNETVERSION: |
    6.0.x
    3.1.301
    GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    GOVERSION: 1.20.1
    JAVAVERSION: "11"
    NODEVERSION: 16.x
    NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
    NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
    PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
    PYTHONVERSION: "3.9"
    SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
    SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
    SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
    SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
    TRAVIS_OS_NAME: linux

Use

Add this action to your Workflow as a step to publish to all four supported registries:

  • PyPI
  • Maven
  • npm
  • nuget
steps:
  - name: Publish all SDKs
    uses: pulumi/[email protected]

Optionally, you may specify language SDKs individually:

steps:
  - name: Publish nodejs SDK
    uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
    with:
      sdk: nodejs
  - name: Publish Java SDK
    uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
    with:
      sdk: java
  - name: Publish Python SDK
    uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
    with:
      sdk: python

Valid inputs to with.sdk are:

  • python - Publish to PyPI
  • java - Publish to Maven
  • nodejs - Publish to npm
  • dotnet - Publish to nuget

pulumi-package-publisher's People

Contributors

guineveresaenger avatar aq17 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.