Skip to content

Instantly share code, notes, and snippets.

@sugoidogo
Last active December 13, 2025 14:37
Show Gist options
  • Select an option

  • Save sugoidogo/bf02b2dbb15d972185d4cbe41c7ab129 to your computer and use it in GitHub Desktop.

Select an option

Save sugoidogo/bf02b2dbb15d972185d4cbe41c7ab129 to your computer and use it in GitHub Desktop.
simple automated test, build, and release using github actions
name: Release
on:
push:
tags:
- "*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- run: test
- run: build
- run: git log $(git describe --tags --abbrev=0 HEAD~1)..HEAD --oneline > changelog.txt
- uses: softprops/action-gh-release@v2
with:
make_latest: true
body_path: changelog.txt
files: snapback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment