mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
name: Create Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
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
|
|
with:
|
|
dotnet-version: 3.1.301
|
|
|
|
- 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
|
|
git push origin AssetStoreRelease
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|