Skip to content

Simple tags and releases

Actions
Simple tag and release process for your repos
v0.3.2
Latest
Star (2)

simple-tags-and-releases

OpenSSF Best Practices

USAGE

with:
  autogenerated_notes: 'true|false' # defaults to 'true' to leverage github autogenerated notes in the release
  version_file: path # defaults to 'VERSION' will tag and release based on the contents of the file such as 'v1.2.3'
name: tag-and-release

on:
  push:
    branches:
      - main

jobs:

  flow:
    runs-on: ubuntu-22.04
    permissions:
      contents: write
    steps:

      - uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
        with:
          fetch-depth: '0'

      - name: tar
        id: tar
        run: |
          tar cf \
            some-tar.tar \
            ./VERSION \
            ./*some-files
          echo "tar=some-tar.tar" >> "${GITHUB_OUTPUT}"

      - name: simple-tag-and-release
        uses: sbe-arg/simple-tags-and-releases@84e09724a8eddf0fb8e01bedc91ab95f142d203d # v0.2.0
        with:
          autogenerated_notes: 'true'
          version_file: 'folder/sub-folder/file-name'
          upload_file: ${{ steps.tar.outputs.tar/orSomeFile }}
        env:
          GH_TOKEN: ${{ github.token }}

what for: simple release processes

  • versioning from a file source
  • upload a single file to the release

what does it look like

safeguards

  • exit 0 if the tag already exists
  • exit 1 if the version in file is not semver valid. Uses semver-tool

extras

  • if you want a version bump reminder in your prs, you can use this example

Simple tags and releases is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Simple tag and release process for your repos
v0.3.2
Latest

Simple tags and releases is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.