Giter Site home page Giter Site logo

.github's Introduction

Release-on-tag actions

These workflows are made to be triggered each time a semantic version tag is pushed.

They'll then verify you didn't forget to add the version in the changelog and either build and push automatically builds your Golang executable cross-platform as soon as you push a git tag that fits the semantic versioning schema with v prefix (f.e. v1.2.3).

Example usage

name: Release Golang executable on tag

on:
  push:
    tags:
    - "v[0-9]+.[0-9]+.[0-9]+"

jobs:
  prerequisites:
    uses: thetillhoff/.github/.github/workflows/release-on-tag-prerequisites.yaml@main
  release-on-tag:
    uses: thetillhoff/.github/.github/workflows/release-on-tag-golang-executable.yaml@main
    #uses: thetillhoff/.github/.github/workflows/release-on-tag-docker-build.yaml@main

Example installation instructions

wget https://github.com/thetillhoff/temingo/releases/download/v0.1.0/temingo_linux_amd64
wget https://github.com/thetillhoff/temingo/releases/download/v0.1.0/temingo_linux_amd64.sha256
sha256sum -c temingo_linux_amd64.sha256
sudo install temingo_linux_amd64 /usr/local/bin/temingo # automatically sets rwxr-xr-x permissions
rm temingo_linux_amd64 temingo_linux_amd64.sha256

Action changelog-prerequisite

This workflow checks if the ./CHANGELOG.md contains an entry for the specified tag.

If it doesn't exist, the pushed tag is automatically deleted and the build fails.

Action tagged-docker-build-and-push

This workflow builds a docker image according to ./Dockerfile, tags it with the pushed tag (and latest) and pushes the image to ghcr.io.

Action tagged-golang-build

This workflow automatically builds your Golang executable cross-platform as soon as you push a git tag that fits the semantic versioning schema with v prefix (f.e. v1.2.3).

Some advanced features are included as well:

  • Cross-platform builds out of the box; Linux, Mac and Windows executables included in every release
  • Automatically retrieves the Go version from ./go.mod

.github's People

Contributors

renovate[bot] avatar thetillhoff avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.