Skip to content

Commit

Permalink
Adding manual process as well
Browse files Browse the repository at this point in the history
  • Loading branch information
tnylea committed Oct 16, 2024
1 parent 8edf0f4 commit 9ccf9b9
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 2 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/auth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ on:
push:
branches:
- main
- 3.x
pull_request:
branches:
- main
- 3.x

jobs:
test:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/install-manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Wave Manual Installation Check

on:
push:
branches:
- main
- 3.x
pull_request:
branches: [ main ]

jobs:
test-installer:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'

- name: Create project directory
run: mkdir project_folder

- name: Download tarball of current commit
run: |
TARBALL_URL=$(curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/tarball/${{ github.sha }} \
-I | grep -i "location:" | cut -d " " -f 2 | tr -d '\r')
curl -L -o wave.tar.gz $TARBALL_URL
- name: Extract tarball to project directory
run: tar -xzf wave.tar.gz -C project_folder --strip-components=1

- name: Debug - List contents of project directory
run: |
echo "Contents of project_folder directory:"
ls -la project_folder
echo "Contents of project_folder/public directory (if it exists):"
ls -la project_folder/public || echo "Public directory not found"

0 comments on commit 9ccf9b9

Please sign in to comment.