-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5f238f
commit 63083e7
Showing
31 changed files
with
372 additions
and
178 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
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: Beta Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
manual: | ||
description: "Manual Build" | ||
required: true | ||
type: boolean | ||
default: true | ||
|
||
jobs: | ||
beta-release: | ||
name: Beta Release | ||
if: github.repository == 'mgylabs/mkbot' | ||
runs-on: windows-2019 | ||
environment: | ||
name: "Beta" | ||
url: https://github.com/mgylabs/mkbot/releases/tag/beta | ||
defaults: | ||
run: | ||
shell: cmd | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- uses: webfactory/ssh-agent@v0.5.1 | ||
name: Install SSH key | ||
id: install-ssh | ||
continue-on-error: true | ||
with: | ||
ssh-private-key: ${{ secrets.DEPLOY_KEY }} | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
shell: pwsh | ||
- name: pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | ||
- name: Install dependencies 1 | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt ; if ($LASTEXITCODE) { exit $LASTEXITCODE } | ||
shell: pwsh | ||
- name: Install dependencies 2 | ||
if: steps.install-ssh.outcome == 'success' | ||
run: | | ||
pip install --no-cache-dir git+ssh://git@github.com/MycroftKang/application-insights-python.git | ||
shell: pwsh | ||
- name: Version | ||
env: | ||
API_KEY: ${{ secrets.API_KEY }} | ||
run: | | ||
python package/vc.py --beta ; if ($LASTEXITCODE) { exit $LASTEXITCODE } | ||
echo "mkbot_version=$(cat version.txt)" >> $env:GITHUB_ENV | ||
if ($Env:API_KEY) { echo $Env:API_KEY > src\lib\mgylabs\constants\APIKey.py } | ||
shell: pwsh | ||
- name: Build MK Bot | ||
run: | | ||
call scripts\build.bat --stable | ||
- name: Packaging | ||
run: | | ||
& "${Env:programfiles(x86)}\Inno Setup 6\iscc.exe" "/DNameLong=Mulgyeol MK Bot" "/DNameShort=MK Bot" "/DVersion=${Env:mkbot_version}" "/DAppExeName=MKBot.exe" "/DAppMutex=MKBot" "/DExtDirName=.mkbot" "/DDName=mkbot" "package\MKBot.iss" | ||
shell: pwsh | ||
- name: Compress Setup | ||
run: | | ||
Compress-Archive -Path MKBotSetup-${Env:mkbot_version}.exe -DestinationPath MKBotSetup.zip | ||
shell: pwsh | ||
- name: Upload Release Asset | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
python package/ghtool.py -ubeta |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
title: Support beta update | ||
pull_request: | ||
type: features |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"$schema": "https://mgylabs.gitlab.io/mulgyeol-mkbot/extensions.schema", | ||
"$schema": "https://raw.githubusercontent.com/mgylabs/mkbot/main/public/extensions.schema.json", | ||
"extensions": [] | ||
} |
Oops, something went wrong.