Skip to content

Commit fe5925d

Browse files
authored
Refactor CI workflow by removing Unity deployment
Removed deploy_to_unity_repo job and updated conditions for build_documentation.
1 parent 913cb7e commit fe5925d

1 file changed

Lines changed: 1 addition & 35 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
build_documentation:
7171
runs-on: ubuntu-latest
7272
needs: build_test_and_package
73-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
73+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && false
7474

7575
steps:
7676
- uses: actions/checkout@v4
@@ -91,40 +91,6 @@ jobs:
9191
name: fsm-api-documentation
9292
path: _site
9393

94-
deploy_to_unity_repo:
95-
needs: build_test_and_package
96-
runs-on: ubuntu-latest
97-
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
98-
99-
100-
steps:
101-
- name: Download DLL Artifact
102-
uses: actions/download-artifact@v4
103-
with:
104-
name: fsm-api-dlls
105-
path: ./downloaded-dlls
106-
107-
- name: Checkout Unity repo
108-
uses: actions/checkout@v4
109-
with:
110-
repository: 'TrentBest/FSM_API_Unity'
111-
token: ${{ secrets.UNITY_REPO_PAT }}
112-
path: FSM_API_Unity_repo
113-
114-
- name: Copy DLL to Unity repo directory
115-
run: |
116-
mkdir -p FSM_API_Unity_repo/Runtime/
117-
cp downloaded-dlls/FSM_API_netstandard2.1.dll FSM_API_Unity_repo/Runtime/FSM_API.dll
118-
119-
- name: Commit and Push to Unity repo
120-
run: |
121-
cd FSM_API_Unity_repo
122-
git config user.name "GitHub Actions"
123-
git config user.email "actions@github.com"
124-
git add Runtime/FSM_API.dll
125-
git commit -m "Auto-update FSM_API.dll from CI" || echo "No changes to commit"
126-
git push
127-
12894
publish_nuget:
12995
needs: build_test_and_package
13096
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)