-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.3 KB
/
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
48
49
50
51
52
53
54
on:
push:
branches:
- main
name: Deploy ORS
jobs:
web-deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Get latest code
uses: actions/checkout@v3
- name: Install dependencies
uses: php-actions/composer@v6
with:
php_version: "8.2"
command: install --no-dev --ignore-platform-req=ext-intl
- name: Sync files
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.FTP_HOST }}
username: ${{ secrets.FTP_USER }}
password: ${{ secrets.FTP_PASSWORD }}
server-dir: ./htdocs/
exclude: |
.git*
.git*/**
.github*
.github/**
.vscode*
.vscode/**
tests*
tests/**
.env
.gitpod.yml
.phpunit.result.cache
builds
preload.php
starter.ini
- name: Run Migrations
id: getRequest
uses: skgandikota/[email protected]
with:
url: "https://ors-zqetri23.isaac.co.zw/"
- name: Get Migration Results
run: |
echo status: "${{ steps.getRequest.outputs.status }}"
echo date: ${{ (fromJSON(steps.getRequest.outputs.headers)).date[0] }}
echo responseBody: "${{ steps.getRequest.outputs.body }}"