run bot script without docker #6
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: run bot script without docker | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: myenvironment | |
steps: | |
- name: Checkout do Código | |
uses: actions/checkout@v2 | |
- name: Configurar PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.2' | |
- name: Make envfile | |
uses: SpicyPizza/[email protected] | |
with: | |
envkey_API_KEY: ${{secrets.API_KEY}} | |
envkey_API_SECRET_KEY: ${{secrets.API_SECRET_KEY}} | |
envkey_ACCESS_TOKEN: ${{secrets.ACCESS_TOKEN}} | |
envkey_ACCESS_TOKEN_SECRET: ${{secrets.ACCESS_TOKEN_SECRET}} | |
file_name: .env | |
- name: Install Composer Dependencies | |
run: composer install --ignore-platform-reqs | |
- name: Run php script | |
run: php main.php | |