Skip to content

Create release

Create release #23

Workflow file for this run

# Workflow to execute when a new tag is released. Update version and create release
name: Create release
on:
workflow_dispatch:
inputs:
tag:
description: "tag: git tag you want create. (e.g. 1.0.0)"
required: true
dry-run:
description: "dry-run: true will never create relase/nuget."
required: true
default: false
type: boolean
jobs:
update-packagejson:
uses: Eyap53/Actions/.github/workflows/update-packagejson.yaml@main
with:
file-path-package: ./Unity_EyapLibrary/Packages/com.maellacour.eyap-library/package.json
file-path-changelog: ./Unity_EyapLibrary/Packages/com.maellacour.eyap-library/CHANGELOG.md
tag: ${{ github.event.inputs.tag }}
dry-run: ${{ fromJson(github.event.inputs.dry-run) }}
create_release:
needs: update-packagejson
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ needs.update-packagejson.outputs.sha }}
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
tag_name: v${{ github.event.inputs.tag }}
generate_release_notes: true
body_path: ./Unity_EyapLibrary/Packages/com.maellacour.eyap-library/CHANGELOG.md