Skip to content

Commit

Permalink
ci: upgrade to actions v4
Browse files Browse the repository at this point in the history
  • Loading branch information
yoursunny committed Mar 10, 2024
1 parent c02e27f commit 1eb79d7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,18 @@ name: build
on:
push:
pull_request:
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: ~/.local/share/pnpm
key: ${{ hashFiles('package.json') }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
Expand All @@ -28,7 +29,7 @@ jobs:
run: |
cp content/demo.json public/content.json
echo 'https://ndnts-video.netlify.app/* https://ndnts-video.ndn.today/:splat 301!' > public/_redirects
- uses: nwtgck/actions-netlify@30aa80fe8d5eec30813fc8b17b77e0a6663f09b5
- uses: nwtgck/actions-netlify@v2.1.0
with:
publish-dir: ./public/
production-deploy: true
Expand All @@ -46,7 +47,7 @@ jobs:
run: |
cp content/pushups.json public/content.json
echo 'https://pushups.netlify.app/* https://pushups.ndn.today/:splat 301!' > public/_redirects
- uses: nwtgck/actions-netlify@30aa80fe8d5eec30813fc8b17b77e0a6663f09b5
- uses: nwtgck/actions-netlify@v2.1.0
with:
publish-dir: ./public/
production-deploy: true
Expand Down

0 comments on commit 1eb79d7

Please sign in to comment.