Mirror/.github/workflows/CreateRelease.yml

47 lines
1.2 KiB
YAML
Raw Permalink Normal View History

name: Create Release
on:
workflow_dispatch:
jobs:
2023-11-08 14:33:51 +00:00
CreateRelease:
runs-on: ubuntu-latest
2023-11-09 07:48:39 +00:00
steps:
2023-11-09 07:48:39 +00:00
- name: Checkout Repository
2023-11-14 14:38:21 +00:00
uses: actions/checkout@v4
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
2023-11-14 14:38:21 +00:00
uses: actions/setup-dotnet@v3
2023-11-09 09:00:51 +00:00
- 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 }}