github.Release
Explore with Pulumi AI
This resource allows you to create and manage a release in a specific GitHub repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const repo = new github.Repository("repo", {
    name: "repo",
    description: "GitHub repo managed by Terraform",
    "private": false,
});
const example = new github.Release("example", {
    repository: repo.name,
    tagName: "v1.0.0",
});
import pulumi
import pulumi_github as github
repo = github.Repository("repo",
    name="repo",
    description="GitHub repo managed by Terraform",
    private=False)
example = github.Release("example",
    repository=repo.name,
    tag_name="v1.0.0")
package main
import (
	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		repo, err := github.NewRepository(ctx, "repo", &github.RepositoryArgs{
			Name:        pulumi.String("repo"),
			Description: pulumi.String("GitHub repo managed by Terraform"),
			Private:     pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		_, err = github.NewRelease(ctx, "example", &github.ReleaseArgs{
			Repository: repo.Name,
			TagName:    pulumi.String("v1.0.0"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() => 
{
    var repo = new Github.Repository("repo", new()
    {
        Name = "repo",
        Description = "GitHub repo managed by Terraform",
        Private = false,
    });
    var example = new Github.Release("example", new()
    {
        Repository = repo.Name,
        TagName = "v1.0.0",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.Repository;
import com.pulumi.github.RepositoryArgs;
import com.pulumi.github.Release;
import com.pulumi.github.ReleaseArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var repo = new Repository("repo", RepositoryArgs.builder()
            .name("repo")
            .description("GitHub repo managed by Terraform")
            .private_(false)
            .build());
        var example = new Release("example", ReleaseArgs.builder()
            .repository(repo.name())
            .tagName("v1.0.0")
            .build());
    }
}
resources:
  repo:
    type: github:Repository
    properties:
      name: repo
      description: GitHub repo managed by Terraform
      private: false
  example:
    type: github:Release
    properties:
      repository: ${repo.name}
      tagName: v1.0.0
On Non-Default Branch
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = new github.Repository("example", {
    name: "repo",
    autoInit: true,
});
const exampleBranch = new github.Branch("example", {
    repository: example.name,
    branch: "branch_name",
    sourceBranch: example.defaultBranch,
});
const exampleRelease = new github.Release("example", {
    repository: example.name,
    tagName: "v1.0.0",
    targetCommitish: exampleBranch.branch,
    draft: false,
    prerelease: false,
});
import pulumi
import pulumi_github as github
example = github.Repository("example",
    name="repo",
    auto_init=True)
example_branch = github.Branch("example",
    repository=example.name,
    branch="branch_name",
    source_branch=example.default_branch)
example_release = github.Release("example",
    repository=example.name,
    tag_name="v1.0.0",
    target_commitish=example_branch.branch,
    draft=False,
    prerelease=False)
package main
import (
	"github.com/pulumi/pulumi-github/sdk/v6/go/github"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := github.NewRepository(ctx, "example", &github.RepositoryArgs{
			Name:     pulumi.String("repo"),
			AutoInit: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		exampleBranch, err := github.NewBranch(ctx, "example", &github.BranchArgs{
			Repository:   example.Name,
			Branch:       pulumi.String("branch_name"),
			SourceBranch: example.DefaultBranch,
		})
		if err != nil {
			return err
		}
		_, err = github.NewRelease(ctx, "example", &github.ReleaseArgs{
			Repository:      example.Name,
			TagName:         pulumi.String("v1.0.0"),
			TargetCommitish: exampleBranch.Branch,
			Draft:           pulumi.Bool(false),
			Prerelease:      pulumi.Bool(false),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() => 
{
    var example = new Github.Repository("example", new()
    {
        Name = "repo",
        AutoInit = true,
    });
    var exampleBranch = new Github.Branch("example", new()
    {
        Repository = example.Name,
        BranchName = "branch_name",
        SourceBranch = example.DefaultBranch,
    });
    var exampleRelease = new Github.Release("example", new()
    {
        Repository = example.Name,
        TagName = "v1.0.0",
        TargetCommitish = exampleBranch.BranchName,
        Draft = false,
        Prerelease = false,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.Repository;
import com.pulumi.github.RepositoryArgs;
import com.pulumi.github.Branch;
import com.pulumi.github.BranchArgs;
import com.pulumi.github.Release;
import com.pulumi.github.ReleaseArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        var example = new Repository("example", RepositoryArgs.builder()
            .name("repo")
            .autoInit(true)
            .build());
        var exampleBranch = new Branch("exampleBranch", BranchArgs.builder()
            .repository(example.name())
            .branch("branch_name")
            .sourceBranch(example.defaultBranch())
            .build());
        var exampleRelease = new Release("exampleRelease", ReleaseArgs.builder()
            .repository(example.name())
            .tagName("v1.0.0")
            .targetCommitish(exampleBranch.branch())
            .draft(false)
            .prerelease(false)
            .build());
    }
}
resources:
  example:
    type: github:Repository
    properties:
      name: repo
      autoInit: true
  exampleBranch:
    type: github:Branch
    name: example
    properties:
      repository: ${example.name}
      branch: branch_name
      sourceBranch: ${example.defaultBranch}
  exampleRelease:
    type: github:Release
    name: example
    properties:
      repository: ${example.name}
      tagName: v1.0.0
      targetCommitish: ${exampleBranch.branch}
      draft: false
      prerelease: false
Create Release Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Release(name: string, args: ReleaseArgs, opts?: CustomResourceOptions);@overload
def Release(resource_name: str,
            args: ReleaseArgs,
            opts: Optional[ResourceOptions] = None)
@overload
def Release(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            repository: Optional[str] = None,
            tag_name: Optional[str] = None,
            body: Optional[str] = None,
            discussion_category_name: Optional[str] = None,
            draft: Optional[bool] = None,
            generate_release_notes: Optional[bool] = None,
            name: Optional[str] = None,
            prerelease: Optional[bool] = None,
            target_commitish: Optional[str] = None)func NewRelease(ctx *Context, name string, args ReleaseArgs, opts ...ResourceOption) (*Release, error)public Release(string name, ReleaseArgs args, CustomResourceOptions? opts = null)
public Release(String name, ReleaseArgs args)
public Release(String name, ReleaseArgs args, CustomResourceOptions options)
type: github:Release
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReleaseArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var releaseResource = new Github.Release("releaseResource", new()
{
    Repository = "string",
    TagName = "string",
    Body = "string",
    DiscussionCategoryName = "string",
    Draft = false,
    GenerateReleaseNotes = false,
    Name = "string",
    Prerelease = false,
    TargetCommitish = "string",
});
example, err := github.NewRelease(ctx, "releaseResource", &github.ReleaseArgs{
	Repository:             pulumi.String("string"),
	TagName:                pulumi.String("string"),
	Body:                   pulumi.String("string"),
	DiscussionCategoryName: pulumi.String("string"),
	Draft:                  pulumi.Bool(false),
	GenerateReleaseNotes:   pulumi.Bool(false),
	Name:                   pulumi.String("string"),
	Prerelease:             pulumi.Bool(false),
	TargetCommitish:        pulumi.String("string"),
})
var releaseResource = new Release("releaseResource", ReleaseArgs.builder()
    .repository("string")
    .tagName("string")
    .body("string")
    .discussionCategoryName("string")
    .draft(false)
    .generateReleaseNotes(false)
    .name("string")
    .prerelease(false)
    .targetCommitish("string")
    .build());
release_resource = github.Release("releaseResource",
    repository="string",
    tag_name="string",
    body="string",
    discussion_category_name="string",
    draft=False,
    generate_release_notes=False,
    name="string",
    prerelease=False,
    target_commitish="string")
const releaseResource = new github.Release("releaseResource", {
    repository: "string",
    tagName: "string",
    body: "string",
    discussionCategoryName: "string",
    draft: false,
    generateReleaseNotes: false,
    name: "string",
    prerelease: false,
    targetCommitish: "string",
});
type: github:Release
properties:
    body: string
    discussionCategoryName: string
    draft: false
    generateReleaseNotes: false
    name: string
    prerelease: false
    repository: string
    tagName: string
    targetCommitish: string
Release Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Release resource accepts the following input properties:
- Repository string
- The name of the repository.
- TagName string
- The name of the tag.
- Body string
- Text describing the contents of the tag.
- DiscussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- Draft bool
- Set to falseto create a published release.
- GenerateRelease boolNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- Name string
- The name of the release.
- Prerelease bool
- Set to falseto identify the release as a full release.
- TargetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- Repository string
- The name of the repository.
- TagName string
- The name of the tag.
- Body string
- Text describing the contents of the tag.
- DiscussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- Draft bool
- Set to falseto create a published release.
- GenerateRelease boolNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- Name string
- The name of the release.
- Prerelease bool
- Set to falseto identify the release as a full release.
- TargetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- repository String
- The name of the repository.
- tagName String
- The name of the tag.
- body String
- Text describing the contents of the tag.
- discussionCategory StringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft Boolean
- Set to falseto create a published release.
- generateRelease BooleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- name String
- The name of the release.
- prerelease Boolean
- Set to falseto identify the release as a full release.
- targetCommitish String
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- repository string
- The name of the repository.
- tagName string
- The name of the tag.
- body string
- Text describing the contents of the tag.
- discussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft boolean
- Set to falseto create a published release.
- generateRelease booleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- name string
- The name of the release.
- prerelease boolean
- Set to falseto identify the release as a full release.
- targetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- repository str
- The name of the repository.
- tag_name str
- The name of the tag.
- body str
- Text describing the contents of the tag.
- discussion_category_ strname 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft bool
- Set to falseto create a published release.
- generate_release_ boolnotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- name str
- The name of the release.
- prerelease bool
- Set to falseto identify the release as a full release.
- target_commitish str
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- repository String
- The name of the repository.
- tagName String
- The name of the tag.
- body String
- Text describing the contents of the tag.
- discussionCategory StringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft Boolean
- Set to falseto create a published release.
- generateRelease BooleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- name String
- The name of the release.
- prerelease Boolean
- Set to falseto identify the release as a full release.
- targetCommitish String
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
Outputs
All input properties are implicitly available as output properties. Additionally, the Release resource produces the following output properties:
- AssetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- CreatedAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- Etag string
- HtmlUrl string
- URL of the release in GitHub.
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeId string
- GraphQL global node id for use with v4 API
- PublishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- ReleaseId int
- The ID of the release.
- TarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- UploadUrl string
- URL that can be provided to API calls to upload assets.
- Url string
- URL that can be provided to API calls that reference this release.
- ZipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- AssetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- CreatedAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- Etag string
- HtmlUrl string
- URL of the release in GitHub.
- Id string
- The provider-assigned unique ID for this managed resource.
- NodeId string
- GraphQL global node id for use with v4 API
- PublishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- ReleaseId int
- The ID of the release.
- TarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- UploadUrl string
- URL that can be provided to API calls to upload assets.
- Url string
- URL that can be provided to API calls that reference this release.
- ZipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl String
- URL that can be provided to API calls displaying the attached assets to this release.
- createdAt String
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- etag String
- htmlUrl String
- URL of the release in GitHub.
- id String
- The provider-assigned unique ID for this managed resource.
- nodeId String
- GraphQL global node id for use with v4 API
- publishedAt String
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId Integer
- The ID of the release.
- tarballUrl String
- URL that can be provided to API calls to fetch the release TAR archive.
- uploadUrl String
- URL that can be provided to API calls to upload assets.
- url String
- URL that can be provided to API calls that reference this release.
- zipballUrl String
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- createdAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- etag string
- htmlUrl string
- URL of the release in GitHub.
- id string
- The provider-assigned unique ID for this managed resource.
- nodeId string
- GraphQL global node id for use with v4 API
- publishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId number
- The ID of the release.
- tarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- uploadUrl string
- URL that can be provided to API calls to upload assets.
- url string
- URL that can be provided to API calls that reference this release.
- zipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- assets_url str
- URL that can be provided to API calls displaying the attached assets to this release.
- created_at str
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- etag str
- html_url str
- URL of the release in GitHub.
- id str
- The provider-assigned unique ID for this managed resource.
- node_id str
- GraphQL global node id for use with v4 API
- published_at str
- This is the date when the release was published. This will be empty if the release is a draft.
- release_id int
- The ID of the release.
- tarball_url str
- URL that can be provided to API calls to fetch the release TAR archive.
- upload_url str
- URL that can be provided to API calls to upload assets.
- url str
- URL that can be provided to API calls that reference this release.
- zipball_url str
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl String
- URL that can be provided to API calls displaying the attached assets to this release.
- createdAt String
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- etag String
- htmlUrl String
- URL of the release in GitHub.
- id String
- The provider-assigned unique ID for this managed resource.
- nodeId String
- GraphQL global node id for use with v4 API
- publishedAt String
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId Number
- The ID of the release.
- tarballUrl String
- URL that can be provided to API calls to fetch the release TAR archive.
- uploadUrl String
- URL that can be provided to API calls to upload assets.
- url String
- URL that can be provided to API calls that reference this release.
- zipballUrl String
- URL that can be provided to API calls to fetch the release ZIP archive.
Look up Existing Release Resource
Get an existing Release resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ReleaseState, opts?: CustomResourceOptions): Release@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        assets_url: Optional[str] = None,
        body: Optional[str] = None,
        created_at: Optional[str] = None,
        discussion_category_name: Optional[str] = None,
        draft: Optional[bool] = None,
        etag: Optional[str] = None,
        generate_release_notes: Optional[bool] = None,
        html_url: Optional[str] = None,
        name: Optional[str] = None,
        node_id: Optional[str] = None,
        prerelease: Optional[bool] = None,
        published_at: Optional[str] = None,
        release_id: Optional[int] = None,
        repository: Optional[str] = None,
        tag_name: Optional[str] = None,
        tarball_url: Optional[str] = None,
        target_commitish: Optional[str] = None,
        upload_url: Optional[str] = None,
        url: Optional[str] = None,
        zipball_url: Optional[str] = None) -> Releasefunc GetRelease(ctx *Context, name string, id IDInput, state *ReleaseState, opts ...ResourceOption) (*Release, error)public static Release Get(string name, Input<string> id, ReleaseState? state, CustomResourceOptions? opts = null)public static Release get(String name, Output<String> id, ReleaseState state, CustomResourceOptions options)resources:  _:    type: github:Release    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AssetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- Body string
- Text describing the contents of the tag.
- CreatedAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- DiscussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- Draft bool
- Set to falseto create a published release.
- Etag string
- GenerateRelease boolNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- HtmlUrl string
- URL of the release in GitHub.
- Name string
- The name of the release.
- NodeId string
- GraphQL global node id for use with v4 API
- Prerelease bool
- Set to falseto identify the release as a full release.
- PublishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- ReleaseId int
- The ID of the release.
- Repository string
- The name of the repository.
- TagName string
- The name of the tag.
- TarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- TargetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- UploadUrl string
- URL that can be provided to API calls to upload assets.
- Url string
- URL that can be provided to API calls that reference this release.
- ZipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- AssetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- Body string
- Text describing the contents of the tag.
- CreatedAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- DiscussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- Draft bool
- Set to falseto create a published release.
- Etag string
- GenerateRelease boolNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- HtmlUrl string
- URL of the release in GitHub.
- Name string
- The name of the release.
- NodeId string
- GraphQL global node id for use with v4 API
- Prerelease bool
- Set to falseto identify the release as a full release.
- PublishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- ReleaseId int
- The ID of the release.
- Repository string
- The name of the repository.
- TagName string
- The name of the tag.
- TarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- TargetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- UploadUrl string
- URL that can be provided to API calls to upload assets.
- Url string
- URL that can be provided to API calls that reference this release.
- ZipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl String
- URL that can be provided to API calls displaying the attached assets to this release.
- body String
- Text describing the contents of the tag.
- createdAt String
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- discussionCategory StringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft Boolean
- Set to falseto create a published release.
- etag String
- generateRelease BooleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- htmlUrl String
- URL of the release in GitHub.
- name String
- The name of the release.
- nodeId String
- GraphQL global node id for use with v4 API
- prerelease Boolean
- Set to falseto identify the release as a full release.
- publishedAt String
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId Integer
- The ID of the release.
- repository String
- The name of the repository.
- tagName String
- The name of the tag.
- tarballUrl String
- URL that can be provided to API calls to fetch the release TAR archive.
- targetCommitish String
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- uploadUrl String
- URL that can be provided to API calls to upload assets.
- url String
- URL that can be provided to API calls that reference this release.
- zipballUrl String
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl string
- URL that can be provided to API calls displaying the attached assets to this release.
- body string
- Text describing the contents of the tag.
- createdAt string
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- discussionCategory stringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft boolean
- Set to falseto create a published release.
- etag string
- generateRelease booleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- htmlUrl string
- URL of the release in GitHub.
- name string
- The name of the release.
- nodeId string
- GraphQL global node id for use with v4 API
- prerelease boolean
- Set to falseto identify the release as a full release.
- publishedAt string
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId number
- The ID of the release.
- repository string
- The name of the repository.
- tagName string
- The name of the tag.
- tarballUrl string
- URL that can be provided to API calls to fetch the release TAR archive.
- targetCommitish string
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- uploadUrl string
- URL that can be provided to API calls to upload assets.
- url string
- URL that can be provided to API calls that reference this release.
- zipballUrl string
- URL that can be provided to API calls to fetch the release ZIP archive.
- assets_url str
- URL that can be provided to API calls displaying the attached assets to this release.
- body str
- Text describing the contents of the tag.
- created_at str
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- discussion_category_ strname 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft bool
- Set to falseto create a published release.
- etag str
- generate_release_ boolnotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- html_url str
- URL of the release in GitHub.
- name str
- The name of the release.
- node_id str
- GraphQL global node id for use with v4 API
- prerelease bool
- Set to falseto identify the release as a full release.
- published_at str
- This is the date when the release was published. This will be empty if the release is a draft.
- release_id int
- The ID of the release.
- repository str
- The name of the repository.
- tag_name str
- The name of the tag.
- tarball_url str
- URL that can be provided to API calls to fetch the release TAR archive.
- target_commitish str
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- upload_url str
- URL that can be provided to API calls to upload assets.
- url str
- URL that can be provided to API calls that reference this release.
- zipball_url str
- URL that can be provided to API calls to fetch the release ZIP archive.
- assetsUrl String
- URL that can be provided to API calls displaying the attached assets to this release.
- body String
- Text describing the contents of the tag.
- createdAt String
- This is the date of the commit used for the release, and not the date when the release was drafted or published.
- discussionCategory StringName 
- If specified, a discussion of the specified category is created and linked to the release. The value must be a category that already exists in the repository. For more information, see Managing categories for discussions in your repository.
- draft Boolean
- Set to falseto create a published release.
- etag String
- generateRelease BooleanNotes 
- Set to trueto automatically generate the name and body for this release. Ifnameis specified, the specifiednamewill be used; otherwise, a name will be automatically generated. Ifbodyis specified, thebodywill be pre-pended to the automatically generated notes.
- htmlUrl String
- URL of the release in GitHub.
- name String
- The name of the release.
- nodeId String
- GraphQL global node id for use with v4 API
- prerelease Boolean
- Set to falseto identify the release as a full release.
- publishedAt String
- This is the date when the release was published. This will be empty if the release is a draft.
- releaseId Number
- The ID of the release.
- repository String
- The name of the repository.
- tagName String
- The name of the tag.
- tarballUrl String
- URL that can be provided to API calls to fetch the release TAR archive.
- targetCommitish String
- The branch name or commit SHA the tag is created from. Defaults to the default branch of the repository.
- uploadUrl String
- URL that can be provided to API calls to upload assets.
- url String
- URL that can be provided to API calls that reference this release.
- zipballUrl String
- URL that can be provided to API calls to fetch the release ZIP archive.
Import
This resource can be imported using the name of the repository, combined with the id of the release, and a : character for separating components, e.g.
$ pulumi import github:index/release:Release example repo:12345678
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the githubTerraform Provider.