Skip to content

Commit

Permalink
Update test+deploy.yml
Browse files Browse the repository at this point in the history
Fix deploy step
  • Loading branch information
GCHQDeveloper81 authored Jul 16, 2024
1 parent bdccf92 commit 9d3da07
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/test+deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: 20.15.1
Expand All @@ -45,11 +45,9 @@ jobs:
run: npm run build

- name: Upload build artifact
uses: actions/upload-artifact@v2
uses: actions/upload-pages-artifact@v3
with:
name: build
path: build
if-no-files-found: error

# **********************
# Unit + component tests
Expand All @@ -62,7 +60,7 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: 20.15.1
Expand Down Expand Up @@ -102,9 +100,9 @@ jobs:
# **********************

deploy:
runs-on: ubuntu-latest
needs: [build, e2e_tests, unit_and_component_tests]
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

permissions:
pages: write
Expand All @@ -115,11 +113,6 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/download-artifact@v2
with:
name: build
path: build

- name: Deploy
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 9d3da07

Please sign in to comment.