Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Mar 27, 2024
1 parent 6caf614 commit dd8ba9e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
DB_PASSWORD: root

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Set up MySQL
run: |
Expand Down Expand Up @@ -70,10 +70,26 @@ jobs:

runs-on: ubuntu-22.04

environment: staging

steps:
- uses: actions/checkout@v4

- name: Restore npm cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Copy .env
run: php -r "file_exists('.env') || copy('staging.env.example', '.env');"

- name: Build frontend
run: |
npm run build
- name: Generate key
run: php artisan key:generate

Expand Down

0 comments on commit dd8ba9e

Please sign in to comment.