forked from shopware/shopware
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.23 KB
/
05-deploy.yml
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
name: Deploy
on:
push:
branches:
- trunk
permissions:
id-token: write # This is required for requesting the JWT
contents: read
jobs:
release-schedule:
runs-on: ubuntu-24.04
if: github.repository == 'shopware/shopware'
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
releases.json
- name: Configure aws credentials
if: steps.changed-files.outputs.any_changed == 'true'
uses: aws-actions/configure-aws-credentials@v3
with:
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/UploadReleaseCalendar
role-session-name: github-actions
aws-region: eu-central-1
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Publish release schedule
if: steps.changed-files.outputs.any_changed == 'true'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release download --repo shopware/release-schedule --pattern 'release-schedule.phar'
php release-schedule.phar publish