-
-
Notifications
You must be signed in to change notification settings - Fork 20
22 lines (20 loc) · 720 Bytes
/
ci.yml
File metadata and controls
22 lines (20 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
name: Deploy
on:
push:
pull_request:
workflow_dispatch:
jobs:
Deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 7.1
- run: composer install
- run: mkdir ~/.ssh && echo "${{ secrets.DEPLOY_KEY }}" > ~/.ssh/id_rsa && chmod 400 ~/.ssh/id_rsa
- run: echo 'GITHUB_TOKEN="${{ secrets.PAT || secrets.GITHUB_TOKEN }}"' > .env && cat .env.dist >> .env
- run: git config --global user.name "GitHub Actions" && git config --global user.email "actions@github.com"
- run: bin/build
- run: bin/build --deploy --no-component-update
if: ${{ github.ref == 'refs/heads/main' }}