Skip to content

Latest commit

 

History

History
29 lines (22 loc) · 879 Bytes

README.md

File metadata and controls

29 lines (22 loc) · 879 Bytes

GitHub Actions workflows

Reusable GitHub Actions workflows for https://github.com/cubing projects.

Publish GitHub release

Automatically publisheds a GitHub release when a tag starting with v (e.g. v0.1.3) is pushed. This allows the latest release to show up in the sidebar of the project page on GitHub.

Usage:

# bash
mkdir -p ./.github/workflows
cat << CONTENTS > ./.github/workflows/publish-github-release.yaml
name: Publish GitHub release

on:
  push:
    tags:
      - v*

jobs:
  Publish:
    permissions:
      contents: write
    if: startsWith(github.ref, 'refs/tags/v')
    uses: cubing/actions-workflows/.github/workflows/publish-github-release.yaml@main
CONTENTS