-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from post-kerbin-mining-corporation/dev
Release 1.2.0
- Loading branch information
Showing
20 changed files
with
163 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: build | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
# 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: deploy | ||
|
||
# Controls when the action will run. Triggers the workflow on push or pull request | ||
# events but only for the master branch | ||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
# 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" | ||
deploy-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" | ||
- name: Staging package | ||
run: python build-deploy/src/stage.py --f ".mod_data.yml" # Run the staging script | ||
- name: Deploying package | ||
run: python build-deploy/src/deploy.py --f ".mod_data.yml" # Deploy package to spacedock, curse, github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
OAUTH_TOKEN_SSM_KEY: pkmc-bot-github-oauth-token | ||
GITHUB_USER_SSM_KEY: pkmc-bot-github-user | ||
GITHUB_USER_EMAIL_SSM_KEY: pkmc-bot-github-user-email |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,10 @@ PART { | |
maxAmount = 2800 | ||
|
||
} | ||
|
||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 1200 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,4 +49,9 @@ PART { | |
maxAmount = 6400 | ||
|
||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 2160 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,4 +55,9 @@ PART | |
amount = 800 | ||
maxAmount = 800 | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 280 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,4 +92,9 @@ PART | |
key = 1 1 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 200 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,4 +92,9 @@ PART | |
key = 1 1 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 360 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,4 +92,9 @@ PART | |
key = 1 1 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 220 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,4 +93,9 @@ PART | |
key = 1 1 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 70 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -198,4 +198,9 @@ PART | |
secondaryColor = #777777 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 450 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,4 +81,9 @@ PART | |
key = 350 0 | ||
} | ||
} | ||
MODULE | ||
{ | ||
name = ModuleCargoPart | ||
packedVolume = 120 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters