-
Notifications
You must be signed in to change notification settings - Fork 2
34 lines (32 loc) · 1.04 KB
/
bga.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
name: Push to innovationdev
on:
push:
branches:
- 'main-4'
jobs:
build-test:
runs-on: ubuntu-latest
steps:
- name: Checkout codebase
uses: actions/checkout@v2
with:
path: './innovation'
- name: Setup PHP
id: setup-php
uses: shivammathur/setup-php@v2
with:
php-version: '8.1:'
- name: Rename innovation to innovationdev
run: php innovation/misc/bgaprojectrename.php innovation innovationdev
- name: Delete files that we do not want to upload
run: cd innovationdev && rm -rf .vscode .git .github .DS_Store misc node_modules package-lock.json vendor composer.json composer.lock phpunit.xml tests && cd ..
- name: Push to BGA
uses: wlixcc/[email protected]
with:
username: ${{ secrets.BGA_USERNAME }}
server: '1.studio.boardgamearena.com'
port: 2022
password: ${{ secrets.BGA_PASSWORD }}
local_path: './innovationdev'
remote_path: '.'
sftp_only: true