Skip to content

Commit

Permalink
Cleanup GitHub Actions (#2983)
Browse files Browse the repository at this point in the history
This is mostly just about naming. Plus removing an unused end-to-end testing workflow.
  • Loading branch information
hughns authored Feb 6, 2025
1 parent 4fc7fbe commit 6dcfdf8
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
- "docs/**"
jobs:
build_element_call:
uses: ./.github/workflows/element-call.yaml
uses: ./.github/workflows/lib/build-element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
Expand Down
24 changes: 0 additions & 24 deletions .github/workflows/e2e.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Docker - Deploy
name: Build and publish docker image
on:
workflow_call:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Element Call - Build
name: Build Element Call
on:
workflow_call:
inputs:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Netlify - Deploy
name: Deploy to Netlify
on:
workflow_call:
inputs:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pr-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: PR Preview Deployments
name: Deploy previews for PRs
on:
workflow_run:
workflows: ["Build"]
Expand All @@ -24,7 +24,7 @@ jobs:
needs: prdetails
permissions:
deployments: write
uses: ./.github/workflows/netlify.yaml
uses: ./.github/workflows/lib/deploy-to-netlify.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
pr_number: ${{ needs.prdetails.outputs.pr_number }}
Expand All @@ -42,7 +42,7 @@ jobs:
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & publish images to the package registry for tags
name: Build & publish images to the package registry for releases

on:
release:
Expand All @@ -16,7 +16,7 @@ env:
jobs:
build_element_call:
if: ${{ github.event_name == 'release' }}
uses: ./.github/workflows/element-call.yaml
uses: ./.github/workflows/lib/build-element-call.yaml
with:
vite_app_version: ${{ github.event.release.tag_name || github.sha }}
secrets:
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
permissions:
contents: write
packages: write
uses: ./.github/workflows/docker.yaml
uses: ./.github/workflows/lib/build-and-publish-docker.yaml
with:
artifact_run_id: ${{ github.event.workflow_run.id || github.run_id }}
docker_tags: |
Expand Down

0 comments on commit 6dcfdf8

Please sign in to comment.