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: Merge Master into AssetStoreRelease
|
2023-11-09 08:35:05 +00:00
|
|
|
uses: devmasx/merge-branch@master
|
|
|
|
with:
|
|
|
|
type: now
|
|
|
|
from_branch: master
|
|
|
|
target_branch: AssetStoreRelease
|
|
|
|
message: "Merged master"
|
|
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
|
2023-11-09 09:00:51 +00:00
|
|
|
- name: Checkout AssetStoreRelease
|
|
|
|
run: |
|
|
|
|
git checkout -b AssetStoreRelease
|
|
|
|
git pull origin AssetStoreRelease
|
|
|
|
|
|
|
|
- name: Set up .NET Core
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
|
|
|
|
- name: Install dotnet-script
|
|
|
|
run: |
|
|
|
|
dotnet tool install -g dotnet-script
|
|
|
|
dotnet script --version
|
|
|
|
|
2023-11-09 11:14:38 +00:00
|
|
|
- name: Run ModPreprocessorDefine.csx
|
2023-11-09 11:35:35 +00:00
|
|
|
run: dotnet script .github/ModPreprocessorDefine.csx
|
|
|
|
|
2023-11-09 09:00:51 +00:00
|
|
|
- name: Commit and Push
|
|
|
|
run: |
|
2023-11-09 09:03:25 +00:00
|
|
|
git config user.name ${{ secrets.COMMITTER_NAME }}
|
|
|
|
git config user.email ${{ secrets.COMMITTER_EMAIL }}
|
2023-11-09 09:00:51 +00:00
|
|
|
git commit -m "release!: Asset Store Release" -a
|
|
|
|
git push origin AssetStoreRelease
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|