Skip to content
This repository has been archived by the owner on Jan 19, 2025. It is now read-only.

Testing #2400

Closed
wants to merge 2 commits into from
Closed

Testing #2400

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 70 additions & 0 deletions .github/workflows/api-rework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Exiled Dev CI

on:
push:
branches:
- apis-rework
pull_request:
branches:
- apis-rework
workflow_dispatch:

env:
EXILED_REFERENCES_URL: https://misaka-zerotwo.github.io/SL-References/Dev.zip
EXILED_REFERENCES_PATH: ${{ github.workspace }}/References
EXILED_DLL_ARCHIVER_URL: https://github.com/Exiled-Team/EXILED-DLL-Archiver/releases/latest/download/EXILED-DLL-Archiver.exe

jobs:

build:

runs-on: windows-latest
# Prevent double running for push & pull_request events from the main repo
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != 'Exiled-Team/Exiled'

steps:

- name: Setup .NET Core SDK
uses: actions/[email protected]

- name: Setup Nuget
uses: iRebbok/setup-nuget@master

- uses: actions/[email protected]

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_REFERENCES_URL }} -OutFile ${{ github.workspace }}/References.zip
Expand-Archive -Path References.zip -DestinationPath ${{ env.EXILED_REFERENCES_PATH }}

- name: Build
env:
EXILED_REFERENCES: ${{ env.EXILED_REFERENCES_PATH }}
shell: pwsh
run: |
./build.ps1 -BuildNuGet
$File = (Get-ChildItem -Path . -Include 'EXILED.*.nupkg' -Recurse).Name
Out-File -FilePath ${{ github.env }} -InputObject "PackageFile=$File" -Encoding utf-8 -Append

- name: Upload nuget package
uses: actions/upload-artifact@v2
with:
name: ${{ env.PackageFile }}
path: ${{ env.PackageFile }}

- name: Get references
shell: pwsh
run: |
Invoke-WebRequest -Uri ${{ env.EXILED_DLL_ARCHIVER_URL }} -OutFile ${{ github.workspace }}/EXILED-DLL-Archiver.exe

- name: Packaging results as tar.gz
shell: pwsh
run: ./packaging.ps1

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: Build Result
path: bin/Release/Exiled.tar.gz

4 changes: 2 additions & 2 deletions Exiled/Exiled.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@
<file src="..\bin\Release\Exiled.CreditTags.dll" target="lib\net48" />
<file src="..\bin\Release\Exiled.CreditTags.xml" target="lib\net48" />

<file src="..\bin\Release\Exiled.CustomItems.dll" target="lib\net48" />
<file src="..\bin\Release\Exiled.CustomItems.xml" target="lib\net48" />
<file src="..\bin\Release\Exiled.CustomModules.dll" target="lib\net48" />
<file src="..\bin\Release\Exiled.CustomModules.xml" target="lib\net48" />

<file src="..\bin\Release\Exiled.CustomRoles.dll" target="lib\net48" />
<file src="..\bin\Release\Exiled.CustomRoles.xml" target="lib\net48" />
Expand Down
Loading