chore: 🏗️ remove webpack and rollup #12
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: Build PHP and Nuxt Projects | |
on: | |
push: | |
branches: | |
- master # or your default branch | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
# Set up PHP and Composer | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.0' # specify your PHP version | |
tools: composer | |
- name: Install PHP dependencies | |
run: composer install | |
# Set up Node.js and build Nuxt project | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '18' | |
- name: Install Nuxt dependencies | |
run: | | |
cd event-viewer | |
npm install | |
- name: Generate Nuxt site | |
run: | | |
cd event-viewer | |
npm run generate | |
- name: Upload generated Nuxt site | |
uses: actions/upload-artifact@v3 | |
with: | |
name: generated-site | |
path: event-viewer/dist | |
# If you have any build steps for the PHP project, add them here | |
# - name: Build PHP project | |
# run: | | |
# # Add your PHP build commands here, if any | |
# Upload PHP project if needed | |
- name: Upload PHP project | |
uses: actions/upload-artifact@v3 | |
with: | |
name: php-project | |
path: . # Adjust this path if you want to upload specific files or directories |