2023-11-08 13:48:51 +00:00
|
|
|
name: Create Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2023-11-08 14:33:51 +00:00
|
|
|
CreateRelease:
|
2023-11-08 13:48:51 +00:00
|
|
|
runs-on: ubuntu-latest
|
2023-11-09 07:48:39 +00:00
|
|
|
|
2023-11-08 13:48:51 +00:00
|
|
|
steps:
|
2023-11-09 07:48:39 +00:00
|
|
|
- name: Checkout Repository
|
2023-11-09 07:53:06 +00:00
|
|
|
uses: actions/checkout@v3
|
2023-11-09 07:48:39 +00:00
|
|
|
|
|
|
|
- name: Set Git Config
|
|
|
|
run: |
|
|
|
|
git config user.name ${{ secrets.COMMITTER_NAME }}
|
|
|
|
git config user.email ${{ secrets.COMMITTER_EMAIL }}
|
|
|
|
|
2023-11-09 07:53:06 +00:00
|
|
|
- name: Debug - List Branches
|
|
|
|
run: |
|
|
|
|
git branch -a
|
|
|
|
|
|
|
|
- name: Check if AssetStoreRelease branch exists
|
|
|
|
run: |
|
2023-11-09 07:55:31 +00:00
|
|
|
git checkout -b AssetStoreRelease
|
2023-11-09 07:53:06 +00:00
|
|
|
|
|
|
|
- name: Debug - List Files
|
|
|
|
run: |
|
|
|
|
ls -al
|
|
|
|
|
2023-11-09 07:48:39 +00:00
|
|
|
- name: Merge Master into AssetStoreRelease
|
|
|
|
run: |
|
|
|
|
git merge master
|
2023-11-09 07:55:31 +00:00
|
|
|
git push --set-upstream origin AssetStoreRelease
|
2023-11-09 07:48:39 +00:00
|
|
|
|
|
|
|
#jobs:
|
|
|
|
# CreateRelease:
|
|
|
|
# runs-on: ubuntu-latest
|
|
|
|
# steps:
|
|
|
|
# - name: Checkout Repo
|
|
|
|
# uses: actions/checkout@v2
|
|
|
|
# with:
|
|
|
|
# ref: AssetStoreRelease
|
|
|
|
|
|
|
|
# - name: Merge master into AssetStoreRelease
|
|
|
|
# run: |
|
|
|
|
# git fetch origin master --depth 1
|
|
|
|
# git reset --hard origin/master
|
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
|
|
|
# - name: Set up .NET Core
|
|
|
|
# uses: actions/setup-dotnet@v1
|
|
|
|
|
|
|
|
# - name: Install dotnet-script
|
|
|
|
# run: |
|
|
|
|
# dotnet tool install -g dotnet-script
|
|
|
|
# dotnet script --version
|
|
|
|
|
|
|
|
# - name: Run CreateRelease.cs
|
|
|
|
# run: |
|
|
|
|
# dotnet script .github/CreateRelease.cs
|
|
|
|
|
|
|
|
# - name: Commit and Push
|
|
|
|
# run: |
|
|
|
|
# git config --local user.name ${{ secrets.COMMITTER_NAME }}
|
|
|
|
# git config --local user.email ${{ secrets.COMMITTER_EMAIL }}
|
|
|
|
# git add Assets/Mirror/version.txt
|
|
|
|
# git commit -m "release!: Asset Store Release" -a
|
|
|
|
|
|
|
|
# # Configure Git to rebase when pulling
|
|
|
|
# git config --local pull.rebase true
|
|
|
|
|
|
|
|
# # Perform a git pull to update the local branch with remote changes
|
|
|
|
# git pull origin AssetStoreRelease
|
|
|
|
|
|
|
|
# # Push the updated branch to the remote
|
|
|
|
# git push origin AssetStoreRelease
|
|
|
|
# env:
|
|
|
|
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|