* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Friday, September 5, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    ITV Studios Launches New Entertainment Label – Global Bulletin – IMDb

    ITV Studios Unveils Exciting New Entertainment Label

    TS Entertainment bringing Malibu Jack’s to former Owensboro mall – Lane Report

    TS Entertainment Launches Malibu Jack’s at Former Owensboro Mall Location

    Jenny Han Dropped a Major ‘The Summer I Turned Pretty’ Easter Egg Revealing [SPOILER] – yahoo.com

    Jenny Han Just Unveiled a Huge ‘The Summer I Turned Pretty’ Easter Egg That Changes Everything [SPOILER]

    Liam Payne’s Cousin Ross Harris Honors Late Singer With Emotional Song ‘Bones’ – yahoo.com

    Liam Payne’s Cousin Ross Harris Honors Late Singer with Emotional New Song ‘Bones

    Country music star apologizes after drunken show ends with cops taking him down: ‘I’m not OK’ – PennLive.com

    Country Music Star Apologizes After Drunken Show Ends in Police Intervention: ‘I’m Not OK

    Comanche Nation Entertainment closes casino near Devol – KSWO 7News

    Comanche Nation Entertainment Closes Casino Near Devol in Surprising Move

  • 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
    Monkey Island LNG Picks ConocoPhillips’ Liquefaction Technology – Hart Energy

    Monkey Island LNG Selects ConocoPhillips’ Advanced Liquefaction Technology for Next-Gen Energy Solutions

    Credo Technology Group Holding Ltd. (CRDO) Surpasses Q1 Earnings and Revenue Estimates – Yahoo Finance

    Credo Technology Group Surpasses Q1 Earnings and Revenue Expectations

    The Economist is hiring a science and technology correspondent – The Economist

    Exciting Opportunity: Become Our Next Science and Technology Correspondent!

    Blockchain lender Figure Technology seeks to raise up to $526M in IPO (FIGR:Pending) – Seeking Alpha

    Blockchain Lender Figure Technology Sets Sights on $526M in Thrilling IPO Launch

    New Technology from Ramsey Theory Group Brings Diagnostic Testing and Telehealth Directly into Patients’ Homes – Yahoo Finance

    Revolutionary Ramsey Theory Technology Delivers Diagnostic Testing and Telehealth Right to Your Doorstep

    China’s CATL sells stake in Finnish subcontract car manufacturer – Reuters

    China’s CATL Sells Stake in Finnish Auto Supplier in Strategic Move

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    ITV Studios Launches New Entertainment Label – Global Bulletin – IMDb

    ITV Studios Unveils Exciting New Entertainment Label

    TS Entertainment bringing Malibu Jack’s to former Owensboro mall – Lane Report

    TS Entertainment Launches Malibu Jack’s at Former Owensboro Mall Location

    Jenny Han Dropped a Major ‘The Summer I Turned Pretty’ Easter Egg Revealing [SPOILER] – yahoo.com

    Jenny Han Just Unveiled a Huge ‘The Summer I Turned Pretty’ Easter Egg That Changes Everything [SPOILER]

    Liam Payne’s Cousin Ross Harris Honors Late Singer With Emotional Song ‘Bones’ – yahoo.com

    Liam Payne’s Cousin Ross Harris Honors Late Singer with Emotional New Song ‘Bones

    Country music star apologizes after drunken show ends with cops taking him down: ‘I’m not OK’ – PennLive.com

    Country Music Star Apologizes After Drunken Show Ends in Police Intervention: ‘I’m Not OK

    Comanche Nation Entertainment closes casino near Devol – KSWO 7News

    Comanche Nation Entertainment Closes Casino Near Devol in Surprising Move

  • 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
    Monkey Island LNG Picks ConocoPhillips’ Liquefaction Technology – Hart Energy

    Monkey Island LNG Selects ConocoPhillips’ Advanced Liquefaction Technology for Next-Gen Energy Solutions

    Credo Technology Group Holding Ltd. (CRDO) Surpasses Q1 Earnings and Revenue Estimates – Yahoo Finance

    Credo Technology Group Surpasses Q1 Earnings and Revenue Expectations

    The Economist is hiring a science and technology correspondent – The Economist

    Exciting Opportunity: Become Our Next Science and Technology Correspondent!

    Blockchain lender Figure Technology seeks to raise up to $526M in IPO (FIGR:Pending) – Seeking Alpha

    Blockchain Lender Figure Technology Sets Sights on $526M in Thrilling IPO Launch

    New Technology from Ramsey Theory Group Brings Diagnostic Testing and Telehealth Directly into Patients’ Homes – Yahoo Finance

    Revolutionary Ramsey Theory Technology Delivers Diagnostic Testing and Telehealth Right to Your Doorstep

    China’s CATL sells stake in Finnish subcontract car manufacturer – Reuters

    China’s CATL Sells Stake in Finnish Auto Supplier in Strategic Move

    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

Singapore Thrived in a US-Led World. Now What? – Bloomberg

Singapore Thrived in a US-Led World. Now What? – Bloomberg

September 5, 2025
Niger will be Africa’s fastest-growing economy in 2025, says World Bank – Peoples Dispatch

Niger will be Africa’s fastest-growing economy in 2025, says World Bank – Peoples Dispatch

September 5, 2025
Justin Bieber’s ‘Swag II’ Album Isn’t Out as Promised & It’s Keeping Fans Waiting – yahoo.com

Justin Bieber’s ‘Swag II’ Album Postponed, Fans Left Counting Down the Days

September 5, 2025
Kennedy draws bipartisan pushback at Senate hearing over moves to limit vaccines – NBC News

Kennedy Faces Strong Bipartisan Opposition at Senate Hearing Over Vaccine Restrictions

September 5, 2025
Stephen A. Smith is ready to talk politics: ‘I will spare no one’ – The Washington Post

Stephen A. Smith Is Ready to Dive Into Politics: ‘I Will Spare No One

September 5, 2025
Borgo Laudato si’: Pope Leo XIV to launch new ecological and spiritual chapter – Vatican News

Pope Leo XIV to Ignite a Powerful New Era of Ecological and Spiritual Renewal at Borgo Laudato Si

September 4, 2025
Scientific objectivity is a myth – cultural values and beliefs always influence science and the people who do it – The Conversation

Why Scientific Objectivity Is a Myth: How Culture Shapes Science and Its Practitioners

September 4, 2025
Nuclear Fuel: The Art And Science Of The Nuclear Renaissance – The National Interest

Nuclear Fuel Uncovered: The Art and Science Powering the New Energy Revolution

September 4, 2025

Ramlila Artists Embrace Healthy Lifestyles to Truly Bring Divine Characters to Life

September 4, 2025
Monkey Island LNG Picks ConocoPhillips’ Liquefaction Technology – Hart Energy

Monkey Island LNG Selects ConocoPhillips’ Advanced Liquefaction Technology for Next-Gen Energy Solutions

September 4, 2025

Categories

Archives

September 2025
MTWTFSS
1234567
891011121314
15161718192021
22232425262728
2930 
« Aug    
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 (807)
  • Economy (826)
  • Entertainment (21,704)
  • General (16,863)
  • Health (9,867)
  • Lifestyle (839)
  • News (22,149)
  • People (827)
  • Politics (833)
  • Science (16,036)
  • Sports (21,324)
  • Technology (15,806)
  • World (807)

Recent News

Singapore Thrived in a US-Led World. Now What? – Bloomberg

Singapore Thrived in a US-Led World. Now What? – Bloomberg

September 5, 2025
Niger will be Africa’s fastest-growing economy in 2025, says World Bank – Peoples Dispatch

Niger will be Africa’s fastest-growing economy in 2025, says World Bank – Peoples Dispatch

September 5, 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