mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
Updated CreateRelease.yml
This commit is contained in:
parent
d4734c0892
commit
d90b6baceb
81
.github/workflows/CreateRelease.yml
vendored
81
.github/workflows/CreateRelease.yml
vendored
@ -6,45 +6,64 @@ on:
|
||||
jobs:
|
||||
CreateRelease:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
ref: AssetStoreRelease
|
||||
|
||||
- name: Merge master into AssetStoreRelease
|
||||
- name: Set Git Config
|
||||
run: |
|
||||
git fetch origin master --depth 1
|
||||
git reset --hard origin/master
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
git config user.name ${{ secrets.COMMITTER_NAME }}
|
||||
git config user.email ${{ secrets.COMMITTER_EMAIL }}
|
||||
|
||||
- name: Set up .NET Core
|
||||
uses: actions/setup-dotnet@v1
|
||||
|
||||
- name: Install dotnet-script
|
||||
- name: Merge Master into AssetStoreRelease
|
||||
run: |
|
||||
dotnet tool install -g dotnet-script
|
||||
dotnet script --version
|
||||
git checkout AssetStoreRelease
|
||||
git merge master
|
||||
git push
|
||||
|
||||
- name: Run CreateRelease.cs
|
||||
run: |
|
||||
dotnet script .github/CreateRelease.cs
|
||||
#jobs:
|
||||
# CreateRelease:
|
||||
# runs-on: ubuntu-latest
|
||||
# steps:
|
||||
# - name: Checkout Repo
|
||||
# uses: actions/checkout@v2
|
||||
# with:
|
||||
# ref: AssetStoreRelease
|
||||
|
||||
- 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
|
||||
# - name: Merge master into AssetStoreRelease
|
||||
# run: |
|
||||
# git fetch origin master --depth 1
|
||||
# git reset --hard origin/master
|
||||
# env:
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
# Configure Git to rebase when pulling
|
||||
git config --local pull.rebase true
|
||||
# - name: Set up .NET Core
|
||||
# uses: actions/setup-dotnet@v1
|
||||
|
||||
# Perform a git pull to update the local branch with remote changes
|
||||
git pull origin AssetStoreRelease
|
||||
# - name: Install dotnet-script
|
||||
# run: |
|
||||
# dotnet tool install -g dotnet-script
|
||||
# dotnet script --version
|
||||
|
||||
# Push the updated branch to the remote
|
||||
git push origin AssetStoreRelease
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# - 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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user