Skip to content

Commit

Permalink
Update release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
NorseDreki committed Apr 25, 2024
1 parent 57fac4b commit 769eed2
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 7 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release-brew.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
name: Release to Homebrew

on:
push:
branches: [ "main" ]
tags:
- '*'
workflow_dispatch:

jobs:
bump:
build-and-release:
runs-on: macos-latest
steps:
- name: Checkout repo
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release-snap.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and Release Snap

on:
push:
branches: [ "main" ]
workflow_dispatch:

jobs:
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: build and publish

on:
push:
tags:
- '*'

env:
GRADLE_OPTS: "-Dorg.gradle.jvmargs=-Xmx4g -Dorg.gradle.daemon=false -Dkotlin.incremental=false"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/check-gradle-wrapper.yml

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3

- name: Build with Gradle
run: ./gradlew assemble

- name: Extract release notes
id: release_notes
if: startsWith(github.ref, 'refs/tags/')
uses: ffurrer2/extract-release-notes@v2

- uses: ./.github/workflows/release-brew.yml

- uses: ./.github/workflows/release-snap.yml

- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.release_notes.outputs.release_notes }}
files: build/bin/**/**/dogcat.kexe
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 769eed2

Please sign in to comment.