Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Jul 23, 2024
1 parent bfa3db5 commit 316ac48
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18
- name: Checkout your repository using git
uses: actions/checkout@v3
node-version: 21
cache: 'npm'

- name: Install Playwright
run: npm install -D @playwright/test@latest

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Install, build, and upload your site
uses: withastro/action@v0
# with:
Expand All @@ -38,19 +46,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 21
cache: 'npm'

- name: Install Playwright
run: npm install -D @playwright/test@latest

- name: Install Playwright Browsers
run: npx playwright install --with-deps

- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/main'}}
id: deployment
Expand Down

0 comments on commit 316ac48

Please sign in to comment.