Close Menu
Ztoog
    What's Hot
    The Future

    Internet sites of several French cities targeted by cyber attacks

    AI

    Bill Gates isn’t too scared about AI

    Gadgets

    Marketer sparks panic with claims it uses smart devices to eavesdrop on people

    Important Pages:
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    Facebook X (Twitter) Instagram Pinterest
    Facebook X (Twitter) Instagram Pinterest
    Ztoog
    • Home
    • The Future

      What is Project Management? 5 Best Tools that You Can Try

      Operational excellence strategy and continuous improvement

      Hannah Fry: AI isn’t as powerful as we think

      FanDuel goes all in on responsible gaming push with new Play with a Plan campaign

      Gettyimages.com Is the Best Website on the Internet Right Now

    • Technology

      Iran war: How could it end?

      Democratic senators question CFTC staffing cuts in Chicago enforcement office

      Google’s Cloud AI lead on the three frontiers of model capability

      AMD agrees to backstop a $300M loan from Goldman Sachs for Crusoe to buy AMD AI chips, the first known case of AMD chips used as debt collateral (The Information)

      Productivity apps failed me when I needed them most

    • Gadgets

      macOS Tahoe 26.3.1 update will “upgrade” your M5’s CPU to new “super” cores

      Lenovo Shows Off a ThinkBook Modular AI PC Concept With Swappable Ports and Detachable Displays at MWC 2026

      POCO M8 Review: The Ultimate Budget Smartphone With Some Cons

      The Mission: Impossible of SSDs has arrived with a fingerprint lock

      6 Best Phones With Headphone Jacks (2026), Tested and Reviewed

    • Mobile

      Android’s March update is all about finding people, apps, and your missing bags

      Watch Xiaomi’s global launch event live here

      Our poll shows what buyers actually care about in new smartphones (Hint: it’s not AI)

      Is Strava down for you? You’re not alone

      The Motorola Razr FIFA World Cup 2026 Edition was literally just unveiled, and Verizon is already giving them away

    • Science

      Big Tech Signs White House Data Center Pledge With Good Optics and Little Substance

      Inside the best dark matter detector ever built

      NASA’s Artemis moon exploration programme is getting a major makeover

      Scientists crack the case of “screeching” Scotch tape

      Blue-faced, puffy-lipped monkey scores a rare conservation win

    • AI

      Online harassment is entering its AI era

      Meet NullClaw: The 678 KB Zig AI Agent Framework Running on 1 MB RAM and Booting in Two Milliseconds

      New method could increase LLM training efficiency | Ztoog

      The human work behind humanoid robots is being hidden

      NVIDIA Releases DreamDojo: An Open-Source Robot World Model Trained on 44,711 Hours of Real-World Human Video Data

    • Crypto

      SEC Vs. Justin Sun Case Ends In $10M Settlement

      Google paid startup Form Energy $1B for its massive 100-hour battery

      Ethereum Breakout Alert: Corrective Channel Flip Sparks Impulsive Wave

      Show Your ID Or No Deal

      Jane Street sued for alleged front-running trades that accelerated Terraform Labs meltdown

    Ztoog
    Home » How to Automatically Publish GitHub Releases From Git Tags
    Technology

    How to Automatically Publish GitHub Releases From Git Tags

    Facebook Twitter Pinterest WhatsApp
    How to Automatically Publish GitHub Releases From Git Tags
    Share
    Facebook Twitter LinkedIn Pinterest WhatsApp

    GitHub Releases present a straightforward to entry methodology for finish customers to obtain versioned software program binaries. You can create them manually, but it surely’s a lot simpler to let GitHub Actions construct them robotically utilizing launch tags created in your repository.

    Using Tagged Releases

    Tags are an current function in Git, with prolonged assist provided by GitHub with Releases, which supply a spot to host binaries with related changelogs.

    You can create a tag very like you’d make a department, besides it’s a set level that doesn’t transfer and at all times factors to a particular commit. This is beneficial for creating versioned releases, and most of the people will create tags utilizing semantic versioning format (Major.Minor.Patch).

    Tags could be pushed to GitHub the place they can be utilized in different automation workflows. In this case, we will likely be organising a GitHub Actions script that can pay attention for commits containing tagged releases and robotically publish the construct artifacts to a launch.

    Setting Up GitHub Actions

    First, you’ll need to be sure to have a working GitHub Actions construct, and that your construct scripts are functioning correctly. The precise setup on your workflow will depend upon what sort of mission you’re constructing, however usually, you don’t need to be debugging two issues directly, so you must add the discharge publishing as soon as you have already got working artifacts. You can learn our information to organising a GitHub Actions construct to study extra.

    The very first thing to do is edit the “on” part of your Actions script to additionally run when Tags are created. By default, you in all probability have the “push” occasion to observe releases or the grasp department. You’ll want to add tags, and set a filter. For all tags, merely use a wildcard:

    At the tip of the workflow, after the whole lot is constructed, we are going to create the Release entry. This is a two half step—first, we are going to want to create a brand new Release object with all of the metadata, after which we are able to use the outputted publish URL for this to add the artifacts. You can create a number of add steps in case you have a number of artifacts.

    In both case, we are going to need to solely run these steps if the workflow is working due to a tag. We can do that with a easy if test, and test if the github.ref object is a tag, which shops the ref title of the department or tag that triggered the workflow.

    The first step is to create a Release object, which could be executed with the next step. The GitHub token doesn’t want to be created manually—it’s a particular token that may at all times be referenced from Actions scripts.

         - title: Create Release
          if: startsWith(github.ref, 'refs/tags/')
          makes use of: 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 and techniques.GITHUB_TOKEN }}

    Note right here that the changelog for the discharge is saved at CHANGELOG.md, which should exist for the workflow to run correctly. You can edit this with every tag to change the markdown displayed by GitHub on the discharge web page. There are instruments to generate this robotically with commit messages, however most groups can have their very own methodology of managing this anyway.

    Next, you can begin importing artifacts. This makes use of the add URL from the earlier step, and also you’ll want to outline a path the place it may be discovered together with the show title for the asset.

         - title: Upload Release
          if: startsWith(github.ref, 'refs/tags/')
          makes use of: actions/upload-release-asset@v1
          env:
            GITHUB_TOKEN: ${{ secrets and techniques.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: software/octet-stream

    Note right here that the content material kind is ready to octet-stream, which is typical for binary knowledge like executables and DLLs. If you’re publishing a ZIP or another type of file, you will have to change this, although it solely impacts the visuals on the discharge web page.

    Now, you possibly can commit the adjustments to the Actions workflow, after which create a brand new tag and push it to GitHub. You ought to see a brand new workflow run being created, besides as a substitute of working off the grasp department, it’s working due to the tag:

    Once it’s completed, you’ll see the discharge within the GitHub sidebar.

    Share. Facebook Twitter Pinterest LinkedIn WhatsApp

    Related Posts

    Technology

    Iran war: How could it end?

    Technology

    Democratic senators question CFTC staffing cuts in Chicago enforcement office

    Technology

    Google’s Cloud AI lead on the three frontiers of model capability

    Technology

    AMD agrees to backstop a $300M loan from Goldman Sachs for Crusoe to buy AMD AI chips, the first known case of AMD chips used as debt collateral (The Information)

    Technology

    Productivity apps failed me when I needed them most

    Technology

    Makers are turning discarded vapes into tiny musical instruments

    Technology

    Best 85-Inch TV for 2026

    Technology

    Breaking Boundaries in Wireless Communication: Simulating Animated, On-Body RF Propagation

    Leave A Reply Cancel Reply

    Follow Us
    • Facebook
    • Twitter
    • Pinterest
    • Instagram
    Top Posts
    Science

    When Not to Treat Cancer | WIRED

    In January 2021, mathematician Hannah Fry was recognized with cervical most cancers. When she acquired…

    The Future

    The Rise and Fall of Threads: Zuck’s Struggle to Retain Users

    Mark Zuckerberg, the CEO of Meta, not too long ago introduced that their new social…

    Science

    Mysterious object may be the lightest black hole we’ve ever seen

    An artist’s impression of a pulsar orbiting a black hole – one potential interpretation of…

    Crypto

    BlackRock’s New Strategy: This Could Be The Key To Securing Bitcoin ETF Approval

    BlackRock, the world’s largest asset supervisor, utilized with the US Securities and Exchange Commission (SEC) for…

    The Future

    The Meta glassholes have arrived

    It’s taking place: individuals are as soon as strolling into public locations sporting a video-recording…

    Our Picks
    Technology

    The Supreme Court’s new “bump stocks” case could make automatic weapons legal

    The Future

    Every single Onewheel is being recalled after four deaths

    Mobile

    Google removes decade-old feature from the camera app on Pixel 8, Pixel 8 Pro

    Categories
    • AI (1,560)
    • Crypto (1,827)
    • Gadgets (1,870)
    • Mobile (1,910)
    • Science (1,939)
    • Technology (1,862)
    • The Future (1,716)
    Most Popular
    Crypto

    Ethereum (ETH) Buy Signal With 78% Accuracy Flashes

    Mobile

    T-Mobile rep reveals the things a subscriber should know when ordering a phone or new line

    Science

    Mysterious black hole jets may be the source of powerful cosmic rays

    Ztoog
    Facebook X (Twitter) Instagram Pinterest
    • Home
    • About Us
    • Contact us
    • Privacy Policy
    • Terms & Conditions
    © 2026 Ztoog.

    Type above and press Enter to search. Press Esc to cancel.