-
Notifications
You must be signed in to change notification settings - Fork 4
56 lines (52 loc) · 1.3 KB
/
platformsh-cd-develop.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
48
49
50
51
52
53
54
55
56
name: CD - develop (platform.sh)
on:
push:
branches:
# - main
- develop
paths:
# Host config
- '.plaform/**'
- '.platform.app.yaml'
- 'gunicorn.conf.py'
# Python config
- 'poetry.lock'
- 'pyproject.toml'
# NPM config
- 'package.json'
- 'package-lock.json'
- 'webpack.config.js'
# App changes
- 'config/**'
- 'sass/**'
- 'scripts/**'
- 'templates/**'
- 'etna/**'
jobs:
ci:
name: CI
uses: ./.github/workflows/_tests.yml
with:
python-version: ${{ vars.CI_PYTHON_VERSION }}
poetry-version: ${{ vars.CI_POETRY_VERSION }}
deploy:
runs-on: ubuntu-latest
needs: ci
steps:
- uses: actions/checkout@v3
- uses: axelerant/platformsh-deploy-action@v1
with:
project-id: ${{ secrets.PLATFORM_PROJECT_ID }}
cli-token: ${{ secrets.PLATFORM_CLI_TOKEN }}
ssh-private-key: ${{ secrets.PLATFORM_SSH_KEY }}
force-push: true
environment-name: develop
notify-slack:
runs-on: ubuntu-latest
needs: deploy
steps:
- uses: actions/checkout@v3
- uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_TITLE: "A deployment to develop is complete"