* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Sunday, November 30, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    Miller Sports + Entertainment Black Friday Bundle – Real Salt Lake

    Score Big This Black Friday with the Ultimate Real Salt Lake Sports Bundle!

    ‘Avatar’ and more: The 17 must-see films you and your family will be talking about this holiday season – Houston Chronicle

    ‘Avatar’ and more: The 17 must-see films you and your family will be talking about this holiday season – Houston Chronicle

    “Boy Meets World ”star Ben Savage and wife Tessa Angermeier welcome first child – Yahoo

    Boy Meets World Star Ben Savage and Wife Tessa Angermeier Welcome Their First Child

    Flutter Entertainment (NYSE:FLUT): Assessing Value After Q3 Results, New Guidance, and Buyback Completion – Yahoo Finance

    Flutter Entertainment (NYSE:FLUT): Assessing Value After Q3 Results, New Guidance, and Buyback Completion – Yahoo Finance

    K&C Sports & Entertainment Law Weekly Roundup – November 2025 #4 – JD Supra

    K&C Sports & Entertainment Law Weekly Roundup – November 2025 #4 – JD Supra

    Titans Entertainment | Week 12 vs Seahawks – Tennessee Titans

    Titans Take on Seahawks: Week 12 Showdown

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

    The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

    Assessing NICE Stock After a 45% Drop and New Technology Partnerships in 2025 – Yahoo Finance

    Assessing NICE Stock After a 45% Drop and New Technology Partnerships in 2025 – Yahoo Finance

    Engineering the Future of Healing: How Innovation Is Reshaping Medical Technology – SELF Magazine

    Engineering the Future of Healing: How Innovation Is Reshaping Medical Technology – SELF Magazine

    Hang Feng (NASDAQ: FOFO) secures SFC upgrade for Type 4 & 9 virtual asset roles – Stock Titan

    Hang Feng (NASDAQ: FOFO) secures SFC upgrade for Type 4 & 9 virtual asset roles – Stock Titan

    How modern technology is reshaping military operations in the Indo-Pacific – Breaking Defense

    How Cutting-Edge Technology is Transforming Military Operations in the Indo-Pacific

    IMD Future Readiness Indicator – Technology 2025 – imd.org

    IMD Future Readiness Indicator – Technology 2025 – imd.org

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    Miller Sports + Entertainment Black Friday Bundle – Real Salt Lake

    Score Big This Black Friday with the Ultimate Real Salt Lake Sports Bundle!

    ‘Avatar’ and more: The 17 must-see films you and your family will be talking about this holiday season – Houston Chronicle

    ‘Avatar’ and more: The 17 must-see films you and your family will be talking about this holiday season – Houston Chronicle

    “Boy Meets World ”star Ben Savage and wife Tessa Angermeier welcome first child – Yahoo

    Boy Meets World Star Ben Savage and Wife Tessa Angermeier Welcome Their First Child

    Flutter Entertainment (NYSE:FLUT): Assessing Value After Q3 Results, New Guidance, and Buyback Completion – Yahoo Finance

    Flutter Entertainment (NYSE:FLUT): Assessing Value After Q3 Results, New Guidance, and Buyback Completion – Yahoo Finance

    K&C Sports & Entertainment Law Weekly Roundup – November 2025 #4 – JD Supra

    K&C Sports & Entertainment Law Weekly Roundup – November 2025 #4 – JD Supra

    Titans Entertainment | Week 12 vs Seahawks – Tennessee Titans

    Titans Take on Seahawks: Week 12 Showdown

  • General
  • Health
  • News

    Cracking the Code: Why China’s Economic Challenges Aren’t Shaking Markets, Unlike America’s” – Bloomberg

    Trump’s Narrow Window to Spread the Truth About Harris

    Trump’s Narrow Window to Spread the Truth About Harris

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    Israel-Gaza war live updates: Hamas leader Ismail Haniyeh assassinated in Iran, group says

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    PAP Boss to Niger Delta Youths, Stay Away from the Protest

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Court Restricts Protests In Lagos To Freedom, Peace Park

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Fans React to Jazz Jennings’ Inspiring Weight Loss Journey

    Trending Tags

    • Trump Inauguration
    • United Stated
    • White House
    • Market Stories
    • Election Results
  • Science
  • Sports
  • Technology
    The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

    The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

    Assessing NICE Stock After a 45% Drop and New Technology Partnerships in 2025 – Yahoo Finance

    Assessing NICE Stock After a 45% Drop and New Technology Partnerships in 2025 – Yahoo Finance

    Engineering the Future of Healing: How Innovation Is Reshaping Medical Technology – SELF Magazine

    Engineering the Future of Healing: How Innovation Is Reshaping Medical Technology – SELF Magazine

    Hang Feng (NASDAQ: FOFO) secures SFC upgrade for Type 4 & 9 virtual asset roles – Stock Titan

    Hang Feng (NASDAQ: FOFO) secures SFC upgrade for Type 4 & 9 virtual asset roles – Stock Titan

    How modern technology is reshaping military operations in the Indo-Pacific – Breaking Defense

    How Cutting-Edge Technology is Transforming Military Operations in the Indo-Pacific

    IMD Future Readiness Indicator – Technology 2025 – imd.org

    IMD Future Readiness Indicator – Technology 2025 – imd.org

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
Earth-News
No Result
View All Result
Home Science

How to Automatically Publish GitHub Releases From Git Tags

July 15, 2023
in Science
How to Automatically Publish GitHub Releases From Git Tags
Share on FacebookShare on Twitter

GitHub hero

GitHub Releases provide an easy to access method for end users to download versioned software binaries. You can create them manually, but it’s much easier to let GitHub Actions build them automatically using release tags created in your repository.

Using Tagged Releases

Tags are an existing feature in Git, with extended support offered by GitHub with Releases, which offer a place to host binaries with associated changelogs.

You can create a tag much like you’d make a branch, except it’s a fixed point that doesn’t move and always points to a specific commit. This is useful for creating versioned releases, and most people will create tags using semantic versioning format (Major.Minor.Patch).

Tags can be pushed to GitHub where they can be used in other automation workflows. In this case, we will be setting up a GitHub Actions script that will listen for commits containing tagged releases and automatically publish the build artifacts to a release.

Setting Up GitHub Actions

First, you’ll want to make sure you have a working GitHub Actions build, and that your build scripts are functioning properly. The exact setup for your workflow will depend on what kind of project you’re building, but generally, you don’t want to be debugging two problems at once, so you should add the release publishing once you already have working artifacts. You can read our guide to setting up a GitHub Actions build to learn more.

The first thing to do is edit the “on” section of your Actions script to also run when Tags are created. By default, you probably have the “push” event to track releases or the master branch. You’ll need to add tags, and set a filter. For all tags, simply use a wildcard:

At the end of the workflow, after everything is built, we will create the Release entry. This is a two part step—first, we will need to create a new Release object with all the metadata, and then we can use the outputted publish URL for this to upload the artifacts. You can create multiple upload steps if you have multiple artifacts.

In either case, we will want to only run these steps if the workflow is running because of a tag. We can do this with a simple if check, and check if the github.ref object is a tag, which stores the ref name of the branch or tag that triggered the workflow.

The first step is to create a Release object, which can be done with the following step. The GitHub token doesn’t need to be created manually—it’s a special token that can always be referenced from Actions scripts.

– name: Create Release
if: startsWith(github.ref, ‘refs/tags/’)
uses: actions/create-release@v1
id: create_release
with:
draft: false
prerelease: false
release_name: ${{ github.ref }}
tag_name: ${{ github.ref }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Note here that the changelog for the release is stored at CHANGELOG.md, which must exist for the workflow to run properly. You can edit this with each tag to change the markdown displayed by GitHub on the release page. There are tools to generate this automatically with commit messages, but most teams will have their own method of managing this anyway.

Next, you can start uploading artifacts. This uses the upload URL from the previous step, and you’ll need to define a path where it can be found along with the display name for the asset.

– name: Upload Release
if: startsWith(github.ref, ‘refs/tags/’)
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: Oxide.Ext.Sanctuary/bin/Release/net48/Oxide.Ext.Sanctuary.dll
asset_name: Oxide.Ext.Sanctuary.dll
asset_content_type: application/octet-stream

Note here that the content type is set to octet-stream, which is typical for binary data like executables and DLLs. If you’re publishing a ZIP or some other kind of file, you will want to change this, though it only affects the visuals on the release page.

Now, you can commit the changes to the Actions workflow, and then create a new tag and push it to GitHub. You should see a new workflow run being created, except instead of running off the master branch, it’s running because of the tag:

Once it’s finished, you’ll see the release in the GitHub sidebar.

>>> Read full article>>>
Copyright for syndicated content belongs to the linked Source : How To Geek – https://www.howtogeek.com/devops/how-to-automatically-publish-github-releases-from-git-tags/

Tags: AutomaticallyPublishscience
Previous Post

What Are Git Submodules, and How Do You Use Them?

Next Post

In St. Louis, contamination from atomic bomb development lingers

The 13 best popular science books of 2025 – New Scientist

13 Must-Read Popular Science Books to Watch for in 2025

November 30, 2025
Hilton’s Luxury and Lifestyle Portfolios Reach 1,000th Hotel Milestone with Nearly 500 More Hotels in the Pipeline – Stories From Hilton

Hilton Marks Milestone with 1,000 Luxury and Lifestyle Hotels-and Nearly 500 More Coming Soon!

November 30, 2025
The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

The Importance of Technology: #5 is a Must-Know! – Simplilearn.com

November 30, 2025
BUF@MIN: Gustavsson with a great save against Alex Tuch – Yahoo Sports

Gustavsson’s Stunning Save Keeps BUF vs. MIN Showdown on Edge as He Denies Alex Tuch

November 30, 2025
Make Money Not War: Trump’s Real Plan for Peace in Ukraine – The Wall Street Journal

Make Money, Not War: Inside Trump’s Bold Plan for Peace in Ukraine

November 30, 2025
The economy muddled along during the shutdown, the Fed found. Is another rate cut on tap? – MarketWatch

Economy Holds Steady Despite Shutdown-Is Another Rate Cut Coming Soon?

November 30, 2025
Miller Sports + Entertainment Black Friday Bundle – Real Salt Lake

Score Big This Black Friday with the Ultimate Real Salt Lake Sports Bundle!

November 30, 2025
‘It’s Just Cruel’: Bay Area Parents Say Sutter Health Is Set to Halt Trans Youth Care – KQED

Bay Area Parents Speak Out as Sutter Health Plans to End Trans Youth Care: ‘It’s Just Cruel

November 30, 2025
Jonathan Talbot: Set aside politics for communal moments – The Quad-City Times

Jonathan Talbot: Embrace Unity by Setting Aside Politics for Meaningful Community Moments

November 30, 2025
COP30: Between the Showcase of Green Capital and the Urgency of a Popular Ecological Transition Project – Tricontinental: Institute for Social Research

COP30: Between the Showcase of Green Capital and the Urgency of a Popular Ecological Transition Project – Tricontinental: Institute for Social Research

November 29, 2025

Categories

Archives

November 2025
M T W T F S S
 12
3456789
10111213141516
17181920212223
24252627282930
« Oct    
Earth-News.info

The Earth News is an independent English-language daily published Website from all around the World News

Browse by Category

  • Business (20,132)
  • Ecology (944)
  • Economy (964)
  • Entertainment (21,839)
  • General (18,469)
  • Health (10,004)
  • Lifestyle (975)
  • News (22,149)
  • People (968)
  • Politics (976)
  • Science (16,178)
  • Sports (21,465)
  • Technology (15,945)
  • World (951)

Recent News

The 13 best popular science books of 2025 – New Scientist

13 Must-Read Popular Science Books to Watch for in 2025

November 30, 2025
Hilton’s Luxury and Lifestyle Portfolios Reach 1,000th Hotel Milestone with Nearly 500 More Hotels in the Pipeline – Stories From Hilton

Hilton Marks Milestone with 1,000 Luxury and Lifestyle Hotels-and Nearly 500 More Coming Soon!

November 30, 2025
  • About
  • Advertise
  • Privacy & Policy
  • Contact

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

No Result
View All Result

© 2023 earth-news.info

Go to mobile version