Reusable GitHub Actions workflows for https://github.com/cubing projects.
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