Skip to content

Commit

Permalink
ci: clarify workflow names
Browse files Browse the repository at this point in the history
  • Loading branch information
kentbull committed Aug 26, 2024
1 parent 95a0e6a commit 4371a1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy-master.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
name: Update GitHub Pages
name: Build latest, push to gh-pages

on:
# Trigger the workflow on push to master/main branch
push:
branches:
- master
- main
# Allows manual triggering from the Actions tab
workflow_dispatch:

jobs:
Expand All @@ -22,7 +20,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22' # Specify the Node.js version you use
node-version: '22'

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/update-static-assets.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Deploy gh-pages

on:
# Runs on pushes targeting the gh-pages
push:
branches: ["gh-pages"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -37,6 +33,7 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
# the ./site directory is used because the `deploy-master.yaml` workflow copies the `./build` output dir contents to the `site` directory
path: './site'
- name: Deploy to GitHub Pages
id: deployment
Expand Down

0 comments on commit 4371a1f

Please sign in to comment.