Skip to content

Commit

Permalink
chore: update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mob-sakai committed Jul 23, 2024
1 parent 053e92b commit 9165da4
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 40 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/deploy.yml

This file was deleted.

18 changes: 8 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: 🔖 Release
run-name: 🔖 Release (${{ github.ref_name }})

on:
workflow_dispatch:
push:
branches:
- release
- release-preview
- release-1.x
- release-*
tags-ignore:
- "**"

Expand Down Expand Up @@ -50,14 +50,12 @@ jobs:
if [ '${{ steps.release.outputs.new_release_published }}' = 'false' ]; then
echo "No new release published." | tee -a $GITHUB_STEP_SUMMARY
elif [ '${{ github.ref_name }}' = 'release' ]; then
echo "merge_to=develop" | tee -a $GITHUB_OUTPUT
echo "split_to=main" | tee -a $GITHUB_OUTPUT
elif [ '${{ github.ref_name }}' = 'release-preview' ]; then
echo "merge_to=develop-preview" | tee -a $GITHUB_OUTPUT
echo "split_to=preview" | tee -a $GITHUB_OUTPUT
elif [ '${{ github.ref_name }}' = 'release-1.x' ]; then
echo "merge_to=develop-1.x" | tee -a $GITHUB_OUTPUT
echo "split_to=1.x" | tee -a $GITHUB_OUTPUT
echo "merge_to=develop" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
echo "split_to=main" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
else
channel=$(echo ${{ github.ref_name }} | sed 's/^release-//')
echo "merge_to=develop-${channel}" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
echo "split_to=${channel}" | tee -a $GITHUB_OUTPUT $GITHUB_STEP_SUMMARY
fi
merge-to:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
# UNITY_EMAIL: Unity user email to login
# UNITY_PASSWORD: Unity user password to login
name: 🧪 Test
run-name: 🧪 Test (${{ github.ref_name }})

env:
# MINIMUM_VERSION: The minimum version of Unity.
MINIMUM_VERSION: 2019.4
# EXCLUDE_FILTER: The excluded versions of Unity.
EXCLUDE_FILTER: '(2020.2.0)'
EXCLUDE_FILTER: '(2020.2.0|2023.3)'

on:
workflow_dispatch:
Expand Down
2 changes: 1 addition & 1 deletion Packages/src/.releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branches": [
"release",
"release-1.x",
"release-[0-9]+.x",
{
"name": "release-preview",
"prerelease": "preview"
Expand Down

0 comments on commit 9165da4

Please sign in to comment.