Skip to content

Commit

Permalink
Add Release step to Release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexCharlton committed Feb 26, 2023
1 parent 58db753 commit c5c36d0
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,27 @@
on: [push]

name: Release

on:
push:
tags:
- 'v*'

jobs:
build:
name: Build
create_release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
name: ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: false

build_release:
name: Build and Release
needs: create_release
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -29,3 +46,12 @@ jobs:

- name: Package
run: just package

- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.create_release.outputs.tag-name }}
files: packages/midi-m8-*

permissions:
contents: write

0 comments on commit c5c36d0

Please sign in to comment.