GitHub
github.com › actions › create-release
GitHub - actions/create-release: An Action to create releases via the GitHub Release API · GitHub
March 4, 2021 - This GitHub Action (written in JavaScript) wraps the GitHub Release API, specifically the Create a Release endpoint, to allow you to leverage GitHub Actions to create releases.
Starred by 1.4K users
Forked by 328 users
Languages JavaScript
Videos
Tip 9: Creating a GitHub release in a GitHub Actions workflow
09:59
How to use GitHub Actions & Release-It to Easily Release Your Code ...
06:08
How to Create a Release on Github - YouTube
01:02:41
Custom GitHub Actions and Release Workflows - YouTube
13:43
Automate GitHub Releases with GitHub Actions | Full Example - YouTube
13:38
Automated GitHub release with Release Please GitHub action - YouTube
GitHub
github.com › marketplace › actions › create-github-release
Create GitHub Release · Actions · GitHub Marketplace · GitHub
on: push: branches: - main paths: - '**/RELEASE' pull_request: types: [opened, synchronize] branches: - main paths: - '**/RELEASE' jobs: gh-release: runs-on: ubuntu-latest permissions: contents: write # Required to create a GitHub release and tag, as GITHUB_TOKEN is read-only by default. pull-requests: write # Required to comment the release note on the pull request. steps: - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: pipe-cd/actions-gh-release@v2.3.4 with: release_file: '**/RELEASE' token: ${{ secrets.GITHUB_TOKEN }}
DEV Community
dev.to › ayoub3bidi › quick-tutorial-how-to-add-a-release-github-workflow-56ib
Quick tutorial: How to add a release GitHub workflow - DEV Community
March 2, 2024 - GitHub Repository: You’ll need a GitHub repository where you want to set up the release workflow. Basic YAML Knowledge: We’ll be writing our workflow in YAML format, so a basic understanding of YAML syntax will be helpful. GitHub Actions workflows consist of triggers, jobs, and steps:
GitHub
github.com › softprops › action-gh-release
GitHub - softprops/action-gh-release: 📦 GitHub Action for creating GitHub Releases
3 weeks ago - This action supports loading release notes from a path in your repository's build to allow for the flexibility of using any changelog generator for your releases, including a human 👩💻 · name: Main on: push jobs: build: runs-on: ...
Starred by 5.5K users
Forked by 615 users
Languages TypeScript 99.8% | JavaScript 0.2%
GitHub
github.com › ncipollo › release-action
GitHub - ncipollo/release-action: An action which manages a github release · GitHub
An action which manages a github release. Contribute to ncipollo/release-action development by creating an account on GitHub.
Starred by 1.7K users
Forked by 233 users
Languages TypeScript
GitHub
github.com › google-github-actions › release-please-action
GitHub - google-github-actions/release-please-action: Archived version of release-please · GitHub
August 15, 2024 - Merge the above action into your repository and make sure new commits follow the Conventional Commits convention, release-please will start creating Release PRs for you. For any advanced configuration, please set up a manifest config and then configure this action as follows: #...(same as above) steps: - uses: google-github-actions/release-please-action@v4 with: # this assumes that you have created a personal access token # (PAT) and configured it as a GitHub action secret named # `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
Starred by 13 users
Forked by 7 users
Languages TypeScript
GitHub
docs.github.com › en › actions › sharing-automations › creating-actions › releasing-and-maintaining-actions
Releasing and maintaining actions - GitHub Docs
To support the developer process in the next section, add two GitHub Actions workflows to your repository: Add a workflow that triggers when a commit is pushed to a feature branch or to main or when a pull request is created. Configure the workflow to run your unit and integration tests. For an example, see this workflow. Add a workflow that triggers when a release is published or edited.
GitHub
github.com › marketplace › actions › automatic-releases
Automatic Releases · Actions · GitHub Marketplace · GitHub
Similar to the previous example, this workflow will kick in as soon as new tags are pushed to GitHub. After building & testing your project: Generate a changelog from all the commits between this and the previous semver-looking tag. Generate a new release and associate it with this tag. Upload LICENSE.txt and any jar files as release assets. Once again there's an example of this over at marvinpinto/actions.
KodeKloud Notes
notes.kodekloud.com › docs › GitHub-Actions-Certification › Custom-Actions › Create-GitHub-release-using-GitHub-Actions › page
Create GitHub release using GitHub Actions - KodeKloud
git add .github/workflows/auto... attached under Assets To push your Action to the Marketplace, click Edit release and follow the Publish to Marketplace prompts:...
Top answer 1 of 3
43
This can be done using the GitHub CLI and a run step. For example, a workflow that creates a release for any tag pushed to the GitHub hosted repository could look like this:
name: Create release
on:
push:
tags:
- v*
permissions:
contents: write
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-24.04
steps:
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
--generate-notes
2 of 3
4
FWIW, this action has worked well for me. I have it configured to add a release draft when a PR is merged into main and auto-generate notes for me. It seems pretty robust with a lot of options and is updated fairly recently (Feb 2nd, 2024 as of this post.)
https://github.com/marketplace/actions/release-drafter
GitHub
github.com › marketplace › actions › publish-a-release
Publish a Release · Actions · GitHub Marketplace · GitHub
If publishing on the same repo that runs the workflow, the automatically created token ${{ secrets.GITHUB_TOKEN }} should work. If the release is on a different repo, you need to create a personal access token with write privileges on the target repo and store it as a secret. ... on: push: # Sequence of patterns matched against refs/tags tags: - 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 name: Create Release jobs: build: name: Create Release runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Create release id: create_release uses: actions/create-
GitHub
github.com › actions › upload-release-asset
GitHub - actions/upload-release-asset: An Action to upload a release asset via the GitHub Release API · GitHub
This GitHub Action (written in JavaScript) wraps the GitHub Release API, specifically the Upload a Release Asset endpoint, to allow you to leverage GitHub Actions to upload release assets.
Starred by 711 users
Forked by 198 users
Languages JavaScript