Reusable GitHub Actions workflows for https://github.com/cubing projects.
Automatically publishes 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
CONTENTSInstalls fish from: https://github.com/fish-shell/fish-shell/releases
Because fish is already compiled, this is much faster than other actions that install from source.
Usage:
uses: cubing/actions-workflows/actions/install-fish@mainAt the moment:
- There is no option to select the
fishversion — a recent version is hardcoded. - Only Linux x64 is supported.