diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..c8b22d9d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,42 @@ +name: PHP Proxy App CI + +on: + workflow_dispatch: + push: + branches: + - main + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.1' + + - name: Set Permissions + run: chmod -R 755 . + + - name: Start PHP Server + run: | + php -S localhost:8000 > /dev/null 2>&1 & + sleep 5 + + - name: Test Application + run: | + curl -I http://localhost:8000 + + - name: Create ZIP + run: zip -r php-proxy-app.zip . -x "*.git*" + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: php-proxy-app + path: php-proxy-app.zip diff --git a/config.php b/config.php index 4228fa52..8067c502 100644 --- a/config.php +++ b/config.php @@ -4,7 +4,7 @@ $config = array(); // a unique key that identifies this application - DO NOT LEAVE THIS EMPTY! -$config['app_key'] = ''; +$config['app_key'] = '123456789'; // a secret key to be used during encryption $config['encryption_key'] = '';