Skip to content

Commit 6dcfdf8

Browse files
authored
Cleanup GitHub Actions (#2983)
This is mostly just about naming. Plus removing an unused end-to-end testing workflow.
1 parent 4fc7fbe commit 6dcfdf8

File tree

7 files changed

+10
-34
lines changed

7 files changed

+10
-34
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
- "docs/**"
1818
jobs:
1919
build_element_call:
20-
uses: ./.github/workflows/element-call.yaml
20+
uses: ./.github/workflows/lib/build-element-call.yaml
2121
with:
2222
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
2323
secrets:

.github/workflows/e2e.yml

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

.github/workflows/docker.yaml renamed to .github/workflows/lib/build-and-publish-docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docker - Deploy
1+
name: Build and publish docker image
22
on:
33
workflow_call:
44
inputs:

.github/workflows/element-call.yaml renamed to .github/workflows/lib/build-element-call.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Element Call - Build
1+
name: Build Element Call
22
on:
33
workflow_call:
44
inputs:

.github/workflows/netlify.yaml renamed to .github/workflows/lib/deploy-to-netlify.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Netlify - Deploy
1+
name: Deploy to Netlify
22
on:
33
workflow_call:
44
inputs:

.github/workflows/pr-deploy.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: PR Preview Deployments
1+
name: Deploy previews for PRs
22
on:
33
workflow_run:
44
workflows: ["Build"]
@@ -24,7 +24,7 @@ jobs:
2424
needs: prdetails
2525
permissions:
2626
deployments: write
27-
uses: ./.github/workflows/netlify.yaml
27+
uses: ./.github/workflows/lib/deploy-to-netlify.yaml
2828
with:
2929
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
3030
pr_number: ${{ needs.prdetails.outputs.pr_number }}
@@ -42,7 +42,7 @@ jobs:
4242
permissions:
4343
contents: write
4444
packages: write
45-
uses: ./.github/workflows/docker.yaml
45+
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
4646
with:
4747
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
4848
docker_tags: |

.github/workflows/publish.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build & publish images to the package registry for tags
1+
name: Build & publish images to the package registry for releases
22

33
on:
44
release:
@@ -16,7 +16,7 @@ env:
1616
jobs:
1717
build_element_call:
1818
if: ${{ github.event_name == 'release' }}
19-
uses: ./.github/workflows/element-call.yaml
19+
uses: ./.github/workflows/lib/build-element-call.yaml
2020
with:
2121
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
2222
secrets:
@@ -62,7 +62,7 @@ jobs:
6262
permissions:
6363
contents: write
6464
packages: write
65-
uses: ./.github/workflows/docker.yaml
65+
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
6666
with:
6767
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
6868
docker_tags: |

0 commit comments

Comments
 (0)