Skip to content

Build Release

Build Release #58

Workflow file for this run

name: Build Release
on:
workflow_dispatch:
inputs:
package-name:
description: 'Name of the package to release'
required: true
type: choice
options:
- sh.orels.shaders
- sh.orels.shaders.generator
- sh.orels.shaders.inspector
jobs:
pack-version:
uses: ./.github/workflows/pack-package.yml
with:
package-name: ${{inputs.package-name}}
update-release:
needs: pack-version
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: get version
id: version
uses: notiz-dev/[email protected]
with:
path: "Packages/${{inputs.package-name}}/package.json"
prop_path: "version"
- name: Make Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/main')
with:
tag_name: "${{inputs.package-name}}@v${{ steps.version.outputs.prop }}"
generate_release_notes: true
draft: true
- name: Make Pre-Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/dev')
with:
tag_name: "${{inputs.package-name}}@v${{ steps.version.outputs.prop }}"
draft: true
prerelease: true
generate_release_notes: true