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
|
|
|
|
steps:
|
|
|
|
- name: Checkout Repo
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
2023-11-08 15:27:28 +00:00
|
|
|
ref: AssetStoreRelease
|
2023-11-08 13:48:51 +00:00
|
|
|
|
2023-11-08 14:37:14 +00:00
|
|
|
- name: Merge master into AssetStoreRelease
|
|
|
|
run: |
|
2023-11-08 15:27:28 +00:00
|
|
|
git fetch origin master --depth 1
|
2023-11-08 17:15:27 +00:00
|
|
|
git reset --hard origin/master
|
2023-11-08 16:58:44 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-11-08 13:48:51 +00:00
|
|
|
|
|
|
|
- name: Set up .NET Core
|
|
|
|
uses: actions/setup-dotnet@v1
|
|
|
|
with:
|
|
|
|
dotnet-version: 3.1.301
|
|
|
|
|
2023-11-08 17:19:40 +00:00
|
|
|
- name: Install dotnet-script
|
|
|
|
run: |
|
|
|
|
dotnet tool install -g dotnet-script
|
|
|
|
dotnet script --version
|
|
|
|
|
2023-11-08 13:48:51 +00:00
|
|
|
- name: Run CreateRelease.cs
|
|
|
|
run: |
|
2023-11-08 17:19:40 +00:00
|
|
|
dotnet script .github/CreateRelease.cs
|
2023-11-08 13:48:51 +00:00
|
|
|
|
|
|
|
- name: Commit and Push
|
|
|
|
run: |
|
2023-11-08 17:15:27 +00:00
|
|
|
git config --local user.name ${{ secrets.COMMITTER_NAME }}
|
|
|
|
git config --local user.email ${{ secrets.COMMITTER_EMAIL }}
|
2023-11-08 13:48:51 +00:00
|
|
|
git add Assets/Mirror/version.txt
|
|
|
|
git commit -m "release!: Asset Store Release" -a
|
2023-11-08 15:27:28 +00:00
|
|
|
git push origin AssetStoreRelease
|
2023-11-08 17:15:27 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|