-
Notifications
You must be signed in to change notification settings - Fork 3
76 lines (66 loc) · 2.38 KB
/
Copy pathbuild.yml
File metadata and controls
76 lines (66 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Beta
on:
workflow_dispatch:
pull_request:
branches:
- develop
env:
S3_BUCKET: ${{ vars.MANUAL_S3_BUCKET }}
ZIP_FILE: ${{ vars.MANUAL_ZIP_FILE }}
GITHUB_REPOSITORY: ${{ github.repository }}
permissions:
contents: read
id-token: write
jobs:
RoboHelp:
name: "RoboHelp"
runs-on: windows-2022
env:
LANGUAGE: ${{ vars.LANGUAGE }}
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v6
with:
role-session-name: github-actions-s3-upload-${{ github.run_id }}
role-to-assume: ${{ secrets.CORETECH_ASSUME_ROLE_ARN }}
aws-region: eu-west-1
- 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@v6
with:
path: Manual
token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
- name: Beta Builds
if: github.event.pull_request.base.ref == 'develop' || github.event_name == 'workflow_dispatch'
run: build_robohelp_gh.bat -beta %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v7
with:
name: YoYoStudioRoboHelp
path: output\RoboHelp\*.zip
if-no-files-found: error
Slack-Notification:
name: "Slack Notification"
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-24.04
needs: RoboHelp
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
steps:
- name: Send Slack Notification Triggered while Nightly Build
run: |
set -euo pipefail
ARTIFACT_URL="${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts"
if [[ "${{ job.status }}" == "success" ]]; then
MSG="📘 English Manual build completed successfully
*Artifacts*: ${ARTIFACT_URL}"
else
MSG="⚠️ English Manual build failed
*Check logs*: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
fi
curl -X POST -H 'Content-type: application/json' \
--data "{\"text\":\"$MSG\"}" \
"$SLACK_WEBHOOK_URL"