Skip to content
Closed
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
49 changes: 12 additions & 37 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,18 @@
name: build

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ dev, master ]
paths:
- '**/*.cs'
- '**/*.csproj'
pull_request:
branches: [ master ]
paths:
- '**/*.cs'
- '**/*.csproj'
workflow_dispatch:
workflow_call:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-package:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
OAUTH_TOKEN: ${{ secrets.OAUTH_TOKEN }}
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checkout this repo
- uses: actions/checkout@v2
# Checkout another repo
- uses: actions/checkout@v2
with:
# Repository name with owner.
repository: 'post-kerbin-mining-corporation/build-deploy'
# branch
ref: 'actions'
path: 'build-deploy'
- uses: actions/setup-python@v2
with:
python-version: '3.8'
architecture: 'x64'
- name: Installing dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest awscli boto3 requests
#- name: Running deploy tests
# run: pytest -s --testpath "GameData/" build-deploy/src/tests/ # run the deploy tests
- name: Building package
run: python build-deploy/src/package.py --f ".mod_data.yml"
build:
uses: KSPModdingLibs/KSPBuildTools/.github/workflows/build.yml@main
47 changes: 0 additions & 47 deletions .github/workflows/deploy.yml

This file was deleted.

6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ build-deploy/
bin/
obj/
*.swp
**/*.csproj.user
*.user
*.suo
/Source/Waterfall/packages/
GameData/Waterfall/Versioning/Waterfall.version
GameData/Waterfall/Plugins/Waterfall.dll
GameData/Waterfall/Plugins/Waterfall.pdb
3 changes: 0 additions & 3 deletions .ksp_deploy_config.yml

This file was deleted.

21 changes: 0 additions & 21 deletions .mod_data.yml

This file was deleted.

Loading
Loading