-
Notifications
You must be signed in to change notification settings - Fork 14
72 lines (60 loc) · 2.02 KB
/
release.yml
File metadata and controls
72 lines (60 loc) · 2.02 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
name: Release
# === Triggers ===
"on":
create
# === JOBS ===
jobs:
# === OS Specific Job (runs on each OS) ===
remote-installer:
name: Remote Installer
timeout-minutes: 30
runs-on: windows-2019
if: github.event.ref_type == 'tag' && contains(github.event.ref, 'release/remote-installer')
permissions:
id-token: write # This is required for requesting the JWT
env:
ACTIVESTATE_CI: true
GITHUB_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AWS_REGION : "us-east-1"
AWS_ROLE_SESSION_NAME: "gha-activestate-cli"
# === OS Specific Steps ===
steps:
- # Checkout Code
name: Checkout code
uses: actions/checkout@v5
- # === Install Go ===
name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.24.x'
- # === Install State Tool ===
name: Install State Tool
uses: ActiveState/setup-state-tool@v1
- # === Preprocess ===
name: Preprocess
shell: bash
timeout-minutes: 1
run: state run preprocess -v
- # === Build Remote Installer ===
name: Build Remote Installer
shell: bash
timeout-minutes: 15
run: |
GOOS=windows state run build-remote-installer
state run generate-remote-install-deployment windows amd64
GOOS=linux state run build-remote-installer
state run generate-remote-install-deployment linux amd64
GOOS=darwin state run build-remote-installer
state run generate-remote-install-deployment darwin amd64
- # === Configure AWS credentials ==
name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }}
role-session-name: ${{ env.AWS_ROLE_SESSION_NAME }}
aws-region: ${{ env.AWS_REGION }}
mask-aws-account-id: true
- # === Deploy ===
name: Deploy
shell: bash
run: state run deploy-remote-installer