Skip to content

Commit 5e107fc

Browse files
committed
Update deploy action
1 parent a6e8a72 commit 5e107fc

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

.github/workflows/deploy.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
# https://github.com/actions/starter-workflows/blob/main/pages/static.yml + https://github.com/JamesIves/github-pages-deploy-action
12
# Simple workflow for deploying static content to GitHub Pages
23
name: Deploy static content to Pages
34

45
on:
56
# Runs on pushes targeting the default branch
67
push:
7-
branches: ["master"]
8+
branches: [$default-branch]
89

910
# Allows you to run this workflow manually from the Actions tab
1011
workflow_dispatch:
@@ -30,20 +31,18 @@ jobs:
3031
runs-on: ubuntu-latest
3132
steps:
3233
- name: Checkout
33-
uses: actions/checkout@v3
34-
35-
- name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
36-
run: |
37-
npm ci
38-
npm run build
39-
34+
uses: actions/checkout@v4
35+
# - name: Install and Build 🔧 # This example project is built using npm and outputs the result to the 'build' folder. Replace with the commands required to build your project, or remove this step entirely if your site is pre-built.
36+
# run: |
37+
# npm ci
38+
# npm run build
4039
- name: Setup Pages
41-
uses: actions/configure-pages@v3
40+
uses: actions/configure-pages@v5
4241
- name: Upload artifact
43-
uses: actions/upload-pages-artifact@v2
42+
uses: actions/upload-pages-artifact@v3
4443
with:
4544
# Upload entire repository
4645
path: 'src'
4746
- name: Deploy to GitHub Pages
4847
id: deployment
49-
uses: actions/deploy-pages@v2
48+
uses: actions/deploy-pages@v4

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
"dev:styles": "postcss src/styles/site/main.css src/styles/tiny-ui-toggle/tiny-ui-toggle.css --dir src/styles --watch",
4949
"build": "npm run clean && cross-env NODE_ENV=production concurrently \"npm:build:*\"",
5050
"build:styles": "postcss src/styles/site/main.css src/styles/tiny-ui-toggle/tiny-ui-toggle.css --dir src/styles",
51-
"publish": "npm run build && npm publish"
51+
"publish:npm": "npm run build && npm publish"
5252
}
5353
}

0 commit comments

Comments
 (0)