Skip to content

Commit d7bf56a

Browse files
Merge pull request #57 from NHSDigital/wd-nv_1640-update-deployment-process
WD NV-1640 Updated workflow to deploy on release
2 parents 0dc241d + d4e85c0 commit d7bf56a

File tree

5 files changed

+4
-151
lines changed

5 files changed

+4
-151
lines changed

.github/workflows/copy-release-to-public.yml

Lines changed: 0 additions & 66 deletions
This file was deleted.

.github/workflows/create-release-pr.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/create-release.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/workflows/pages-build-deployment.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,8 @@ name: Website Deployment
22

33
# Controls when the workflow will run
44
on:
5-
# Triggers the workflow on push events but only for the "main" branch and in the docs directory
6-
push:
7-
branches:
8-
- 'main'
9-
paths:
10-
- 'docs/**'
5+
release:
6+
types: [published]
117

128
# Allows you to run this workflow manually from the Actions tab
139
workflow_dispatch:
@@ -22,10 +18,10 @@ jobs:
2218
steps:
2319
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2420
- name: "Checkout Code"
25-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
2622

2723
- name: "Setup Python"
28-
uses: actions/setup-python@v3
24+
uses: actions/setup-python@v5
2925
with:
3026
python-version: 3.x
3127

.github/workflows/push-release-to-public.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)