Skip to content

Commit

Permalink
Add automated CI releases
Browse files Browse the repository at this point in the history
  • Loading branch information
kmturley committed Feb 22, 2022
1 parent ca783c6 commit 2c3030f
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 0 deletions.
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: Release

on:
workflow_dispatch:
push:
tags:
- "v*"

jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
outputs:
upload_id: ${{ steps.draft_release.outputs.id }}
upload_url: ${{ steps.draft_release.outputs.upload_url }}
steps:
- name: Draft release
id: draft_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true

build_release:
name: Build release
needs: create_release
uses: studiorack/studiorack-workflows/.github/workflows/sfz.yml@main
with:
release_id: ${{ needs.create_release.outputs.upload_id }}
release_url: ${{ needs.create_release.outputs.upload_url }}

publish_release:
name: Publish release
needs: [create_release, build_release]
runs-on: ubuntu-latest
steps:
- uses: eregon/publish-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release_id: ${{ needs.create_release.outputs.upload_id }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Test

on:
push:

jobs:
test_code:
name: Test code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install
run: |
pip install git+git://github.com/jisaacstone/sfzlint.git
- name: Lint
run: |
sfzlint .

0 comments on commit 2c3030f

Please sign in to comment.