Skip to content

Commit

Permalink
Automate build/release
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmior committed Jan 21, 2025
1 parent b4544de commit 3721249
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches:
- main
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
cmake -S . -B ./build -DCMAKE_BUILD_TYPE:STRING=Release
cmake --build ./build --config Release --target strip
- name: Release the new binary
if: github.ref == 'refs/heads/main'
uses: mini-bomba/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag: "latest"
prerelease: true
name: "Latest commit that compiles"
body: |
This automatic prerelease is built from commit ${{ github.sha }} and was triggered by @${{ github.actor }}
[Github Actions workflow run that built this prerelease](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
Commit message:
${{ github.event.head_commit.message }}
files: build/strip
clear_attachments: true

0 comments on commit 3721249

Please sign in to comment.