Merge pull request #1455 from micahstairs/main-4 #182
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Push to innovationalpha | |
on: | |
push: | |
branches: | |
- 'main-alpha' | |
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 innovationalpha | |
run: php innovation/misc/bgaprojectrename.php innovation innovationalpha | |
- name: Delete files that we do not want to upload | |
run: cd innovationalpha && 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' | |
password: ${{ secrets.BGA_PASSWORD }} | |
local_path: './innovationalpha' | |
remote_path: '.' | |
sftp_only: true |