Skip to content
Open
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
32 changes: 32 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build

on:
push:
pull_request:
workflow_call:

jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@1.1.1

- uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@1.1.1
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@1.1.1
with:
output-file-name: RemoteTech
# The build step already copies the relevant files into GameData so we
# don't need to include the defaults here
artifacts: GameData
artifacts-exclude: dont-exclude-anything

- run: tree
- uses: actions/upload-artifact@v4
with:
path: /tmp/release/RemoteTech
name: RemoteTech
- uses: actions/upload-artifact@v4
with:
path: GameData/RemoteTech/Versioning/RemoteTech.version
name: RemoteTech.version
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: release

on:
release:
types:
- published

env:
GITHUB_TOKEN: ${{ github.token }}

jobs:
build:
uses: ./.github/workflows/build.yml

upload-release-assets:
runs-on: ubuntu-latest
needs: [build]
permissions:
contents: write

steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: RemoteTech
path: RemoteTech
- uses: actions/download-artifact@v4
with:
name: RemoteTech.version
- run: tree

- name: Create Zip
run: |
cd RemoteTech
zip -r9 ../RemoteTech.zip *

- name: Upload Release Assets
run: |
gh release upload --clobber ${{ github.ref_name }} \
RemoteTech.zip \
RemoteTech.version
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,8 @@ $RECYCLE.BIN/
src/RemoteTech/*.dll
*.zip
GameData/RemoteTech/Plugins/RemoteTech.dll
GameData/RemoteTech/Plugins/RemoteTech.pdb
GameData/RemoteTech/Plugins/RemoteTech.xml
GameData/RemoteTech/Versioning/RemoteTech.version
GameData/build.txt
src/RemoteTech/RemoteTech.sln.ide/
29 changes: 0 additions & 29 deletions CI/.travis.yml

This file was deleted.

37 changes: 0 additions & 37 deletions CI/build.remotetech.sh

This file was deleted.

83 changes: 0 additions & 83 deletions CI/github.build.deploy.sh

This file was deleted.

8 changes: 0 additions & 8 deletions CI/travis.osx.install.deps.sh

This file was deleted.

33 changes: 0 additions & 33 deletions GameData/RemoteTech/RemoteTech.version

This file was deleted.

12 changes: 12 additions & 0 deletions RemoteTech.slnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<Solution>
<Configurations>
<BuildType Name="Debug" />
<BuildType Name="Release" />
</Configurations>
<Folder Name="/Solution Items/">
<File Path="CHANGES.md" />
<File Path="CONTRIBUTING.md" />
<File Path="README.md" />
</Folder>
<Project Path="src/RemoteTech/RemoteTech.csproj" />
</Solution>
Loading