Skip to content

Change GitHub Actions to ignore paths and branches related to documen… #674

Change GitHub Actions to ignore paths and branches related to documen…

Change GitHub Actions to ignore paths and branches related to documen… #674

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

you may only define one of `branches` and `branches-ignore` for a single event
workflow_dispatch:
push:
branches:
- '*'
branches-ignore:
- 'master'
- 'docs'
paths-ignore:
- 'docs/**'
tags:
- '*'
env:
package_path: package
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run script
run: ci/ci_ubuntu.sh
- name: Upload
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v3
with:
name: vst_ubuntu
path: vst_ubuntu
build-windows:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run script
run: ci/ci_windows.ps1
- name: Upload
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v3
with:
name: vst_windows
path: vst_windows
build-macOS:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run script
run: ci/ci_macOS.sh
- name: Upload
if: ${{ startsWith(github.ref, 'refs/tags/') }}
uses: actions/upload-artifact@v3
with:
name: vst_macOS
path: vst_macOS
release-packaging:
needs: [build-ubuntu, build-windows, build-macOS]
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/UhhyouPlugins') }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
path:
ref: ${{ github.ref }}
submodules: recursive
- name: Download Artifacts
uses: actions/download-artifact@v3
with:
path: ${{ env.package_path }}
- name: Run package script
run: |
cd ${{ env.package_path }}
echo "Run pack.py"
python3 pack.py
echo "Run studiorack.py"
python3 studiorack.py
- name: Get Release Notes
run: 'echo "$(git tag -l --format="%(contents:body)" $GITHUB_REF_NAME)" > RELEASE_NOTES'
- name: Release
uses: softprops/action-gh-release@v1
with:
body_path: RELEASE_NOTES
files: |
${{ env.package_path }}/pack_macOS/*.zip
${{ env.package_path }}/pack/*.zip
${{ env.package_path }}/pack/*.png
${{ env.package_path }}/pack/plugins.json
${{ env.package_path }}/audiosample/*.flac