forked from lando/core
-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.46 KB
/
deploy-s3.yml
File metadata and controls
51 lines (49 loc) · 1.46 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
name: Deploy S3
on:
workflow_call:
inputs:
download-name:
default:
description: The artifact name to download for checksumming
required: false
type: string
download-pattern:
default:
description: The artifact pattern to download for checksumming
required: false
type: string
secrets:
aws-access-key-id:
description: "The aws access key id"
required: true
aws-secret-access-key:
description: "The aws secret access key"
required: true
aws-region:
description: "The aws region"
required: false
jobs:
deploy-s3:
runs-on: ubuntu-24.04
env:
TERM: xterm
steps:
- name: Create paths
run: mkdir -p /tmp/deploy-s3/${{ github.sha }}
- name: Download releases
uses: actions/download-artifact@v8
with:
name: ${{ inputs.download-name }}
merge-multiple: true
path: /tmp/deploy-s3/${{ github.sha }}
pattern: ${{ inputs.download-pattern }}
- name: Configure S3 Credentials
uses: aws-actions/configure-aws-credentials@v6
with:
aws-access-key-id: ${{ secrets.aws-access-key-id }}
aws-secret-access-key: ${{ secrets.aws-secret-access-key }}
aws-region: us-east-1
- name: Upload releases to S3
shell: bash
run: |
aws s3 sync /tmp/deploy-s3/${{ github.sha }} s3://files.lando.dev/core