* . *
  • About
  • Advertise
  • Privacy & Policy
  • Contact
Monday, November 10, 2025
Earth-News
  • Home
  • Business
  • Entertainment
    3 big names skip Rock and Roll Hall of Fame induction ceremony – Yahoo

    Three Major Stars Shock Fans by Skipping Rock and Roll Hall of Fame Induction Ceremony

    Syracuse finalizes entertainment plans for yearly downtown Christmas tree lighting – Syracuse.com

    Syracuse Reveals Thrilling Entertainment Lineup for Annual Downtown Christmas Tree Lighting Celebration

    Weekend events offer diverse entertainment across Suncoast – ABC7 WWSB

    Exciting Weekend Events Bring Diverse Entertainment Across the Suncoast

    How WA helped bring Netflix’s buzzy adaptation ‘Train Dreams’ to life – Yakima Herald-Republic

    How WA helped bring Netflix’s buzzy adaptation ‘Train Dreams’ to life – Yakima Herald-Republic

    Breaking Bad creator’s new sci-fi drama proves the slowest of slow-burns – Yahoo

    Breaking Bad creator’s new sci-fi drama proves the slowest of slow-burns – Yahoo

    Finding fun, entertainment or support in local VFW posts – The Avenue News

    Finding fun, entertainment or support in local VFW posts – The Avenue News

  • 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
    World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

    World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

    Sami Valimaki makes birdie on No. 18 at World Wide Technology – PGA Tour

    Sami Valimaki makes birdie on No. 18 at World Wide Technology – PGA Tour

    Governor Newsom announces “Quantum California” — strengthening the Golden State’s leadership in next-generation technology – California Governor’s Office of Business and Economic Development (.gov)

    Governor Newsom announces “Quantum California” — strengthening the Golden State’s leadership in next-generation technology – California Governor’s Office of Business and Economic Development (.gov)

    Why People are Central to Procurement Technology’s Future – Procurement Magazine

    How People Are Driving the Future of Procurement Technology

    Lonsdale Metal Highlights the Ongoing Evolution of Glazing Bar Technology – Morningstar

    Lonsdale Metal Highlights the Ongoing Evolution of Glazing Bar Technology – Morningstar

    How We Lost Ourselves to Technology—and How We Can Come Back – The Free Press

    How Technology Took Over Our Lives-and How We Can Take Back Control

    Trending Tags

    • Nintendo Switch
    • CES 2017
    • Playstation 4 Pro
    • Mark Zuckerberg
No Result
View All Result
  • Home
  • Business
  • Entertainment
    3 big names skip Rock and Roll Hall of Fame induction ceremony – Yahoo

    Three Major Stars Shock Fans by Skipping Rock and Roll Hall of Fame Induction Ceremony

    Syracuse finalizes entertainment plans for yearly downtown Christmas tree lighting – Syracuse.com

    Syracuse Reveals Thrilling Entertainment Lineup for Annual Downtown Christmas Tree Lighting Celebration

    Weekend events offer diverse entertainment across Suncoast – ABC7 WWSB

    Exciting Weekend Events Bring Diverse Entertainment Across the Suncoast

    How WA helped bring Netflix’s buzzy adaptation ‘Train Dreams’ to life – Yakima Herald-Republic

    How WA helped bring Netflix’s buzzy adaptation ‘Train Dreams’ to life – Yakima Herald-Republic

    Breaking Bad creator’s new sci-fi drama proves the slowest of slow-burns – Yahoo

    Breaking Bad creator’s new sci-fi drama proves the slowest of slow-burns – Yahoo

    Finding fun, entertainment or support in local VFW posts – The Avenue News

    Finding fun, entertainment or support in local VFW posts – The Avenue News

  • 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
    World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

    World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

    Sami Valimaki makes birdie on No. 18 at World Wide Technology – PGA Tour

    Sami Valimaki makes birdie on No. 18 at World Wide Technology – PGA Tour

    Governor Newsom announces “Quantum California” — strengthening the Golden State’s leadership in next-generation technology – California Governor’s Office of Business and Economic Development (.gov)

    Governor Newsom announces “Quantum California” — strengthening the Golden State’s leadership in next-generation technology – California Governor’s Office of Business and Economic Development (.gov)

    Why People are Central to Procurement Technology’s Future – Procurement Magazine

    How People Are Driving the Future of Procurement Technology

    Lonsdale Metal Highlights the Ongoing Evolution of Glazing Bar Technology – Morningstar

    Lonsdale Metal Highlights the Ongoing Evolution of Glazing Bar Technology – Morningstar

    How We Lost Ourselves to Technology—and How We Can Come Back – The Free Press

    How Technology Took Over Our Lives-and How We Can Take Back Control

    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 presence of reeds on riverbanks could be beneficial for fish – Phys.org

How Reeds Along Riverbanks Boost Fish Populations

November 9, 2025
Griffin Museum of Science and Industry kicks off holiday season with annual Christmas Tree Lighting and Cultural Festival – ABC7 Chicago

Griffin Museum of Science and Industry Kicks Off Holiday Season with Festive Tree Lighting and Cultural Celebration

November 9, 2025
World’s biggest spiderweb discovered inside ‘Sulfur Cave’ with 111,000 arachnids living in pitch black – Live Science

Inside the Sulfur Cave: Unveiling the World’s Largest Spiderweb Home to 111,000 Arachnids in Total Darkness

November 9, 2025
Woman Says Friend Admitted She’s Staying with Her Husband for the ‘Lifestyle’ – People.com

Woman Shares Shocking Confession: Friend Admits She’s Staying with Her Husband Just for the Lifestyle

November 9, 2025
World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

World Wide Technology Championship Full Prize Money Payout 2025 – Golf Monthly

November 9, 2025
Connections: Sports Edition hints for Nov. 9, 2025, puzzle No. 412 – The Athletic – The New York Times

Crack the Code: Connections Sports Edition Hints for November 9, 2025 – Puzzle No. 412

November 9, 2025
LA Dodgers’ Alex Vesia shares death of baby daughter after sitting out World Series – BBC

LA Dodgers’ Alex Vesia Shares Emotional Journey After the Heartbreaking Loss of His Baby Daughter During World Series

November 9, 2025
PM Ousmane Sonko asks Senegalese to accept sacrifices to revive economy – TRT Afrika

PM Ousmane Sonko Calls on Senegalese to Unite and Make Bold Sacrifices for Economic Revival

November 9, 2025
3 big names skip Rock and Roll Hall of Fame induction ceremony – Yahoo

Three Major Stars Shock Fans by Skipping Rock and Roll Hall of Fame Induction Ceremony

November 9, 2025
Men’s Health Day brings free screenings, compassion, and hope to Virginia Beach’s homeless community – 13newsnow.com

Men’s Health Day Brings Free Screenings, Compassion, and Hope to Virginia Beach’s Homeless Community

November 9, 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 (911)
  • Economy (932)
  • Entertainment (21,804)
  • General (18,086)
  • Health (9,972)
  • Lifestyle (943)
  • News (22,149)
  • People (933)
  • Politics (943)
  • Science (16,144)
  • Sports (21,433)
  • Technology (15,911)
  • World (916)

Recent News

The presence of reeds on riverbanks could be beneficial for fish – Phys.org

How Reeds Along Riverbanks Boost Fish Populations

November 9, 2025
Griffin Museum of Science and Industry kicks off holiday season with annual Christmas Tree Lighting and Cultural Festival – ABC7 Chicago

Griffin Museum of Science and Industry Kicks Off Holiday Season with Festive Tree Lighting and Cultural Celebration

November 9, 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