-
Notifications
You must be signed in to change notification settings - Fork 3
74 lines (64 loc) · 2.42 KB
/
Copy pathlts.yml
File metadata and controls
74 lines (64 loc) · 2.42 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
name: LTS
on:
workflow_dispatch:
pull_request:
branches:
- main-lts
env:
S3_BUCKET: ${{ secrets.S3_BUCKET }}
ZIP_FILE: ${{ secrets.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:
- uses: aws-actions/configure-aws-credentials@v4
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@v4
with:
path: Manual
token: ${{ secrets.GH_TOKEN }}
- name: LTS Builds
run: build_robohelp_gh.bat %GITHUB_WORKSPACE%\output
shell: cmd
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v4
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"