add node setup
This commit is contained in:
parent
cf28d4a04c
commit
9de856a7ec
7
.github/workflows/gatsby.yml
vendored
7
.github/workflows/gatsby.yml
vendored
@ -9,7 +9,10 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
|
- uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: '18.13.0'
|
||||||
- name: Build project
|
- name: Build project
|
||||||
run: |
|
run: |
|
||||||
sudo yarn global add gatsby-cli
|
sudo yarn global add gatsby-cli
|
||||||
@ -17,4 +20,4 @@ jobs:
|
|||||||
gatsby build
|
gatsby build
|
||||||
- name: Publish to server via scp
|
- name: Publish to server via scp
|
||||||
run: |
|
run: |
|
||||||
yarn run deploy ${{ secrets.WEBMASTER_USERNAME }} ${{ secrets.WEBMASTER_PASSWORD }}
|
yarn run deploy ${{ secrets.WEBMASTER_USERNAME }} ${{ secrets.WEBMASTER_PASSWORD }}
|
||||||
|
Loading…
Reference in New Issue
Block a user