Skip to content

Commit

Permalink
Merge pull request #18 from YoYoGames/update.robohelp.version
Browse files Browse the repository at this point in the history
zipping the artifacts before uploading
  • Loading branch information
ksuchitra532 authored Sep 11, 2023
2 parents 98fd75b + 6dd0b47 commit 9b9b797
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 15 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ on:
pull_request:
branches:
- develop
- main
workflow_dispatch:
schedule:
- cron: '0 4 * * 1-5'

env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
Expand All @@ -17,7 +13,7 @@ jobs:
name: "RoboHelp"
runs-on: windows-2019
steps:
- uses: aws-actions/configure-aws-credentials@v1-node16
- uses: aws-actions/configure-aws-credentials@v3
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
Expand All @@ -33,15 +29,10 @@ jobs:
if: github.event.pull_request.base.ref == 'develop'
run: build_robohelp_gh.bat -beta %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
- name: Builds
if: github.event.pull_request.base.ref == 'main'
run: build_robohelp_gh.bat %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v2
with:
name: YoYoStudioRoboHelp
path: output\RoboHelp
path: output\RoboHelp\*.zip
if-no-files-found: error
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
on:
pull_request:
branches:
- main

env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
ZIP_FILE: ${{ secrets.ZIP_FILE }}

jobs:

RoboHelp:
name: "RoboHelp"
runs-on: windows-2019
steps:
- uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.REGION }}
- name: Enable git long paths to bypass path limit on Windows
run: git config --system core.longpaths true
- name: Check out the GMS2_Documentation repo
uses: actions/checkout@v3
with:
path: Manual
token: ${{ secrets.GH_TOKEN }}
- name: Beta Builds
if: github.event.pull_request.base.ref == 'main'
run: build_robohelp_gh.bat %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
- name: Non-Beta Builds
if: github.event.pull_request.base.ref == 'main'
run: build_robohelp_gh.bat %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v2
with:
name: YoYoStudioRoboHelp
path: output\RoboHelp
if-no-files-found: error

6 changes: 3 additions & 3 deletions build_robohelp_gh.bat
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@ rem append css fix to layout.css
type "%basedir%SupportFiles\layout_fix_append.css" >> "%DESTDIR%\RoboHelp\template\Charcoal_Grey\layout.css"

@REM rem ************************************************** ZIP up the output
@REM pushd %DESTDIR%\RoboHelp
@REM 7z a YoYoStudioRoboHelp.zip . -r
@REM popd
pushd %DESTDIR%\RoboHelp
7z a YoYoStudioRoboHelp.zip . -r
popd

0 comments on commit 9b9b797

Please sign in to comment.