site/.github/workflows/gatsby.yml

20 lines
444 B
YAML
Raw Normal View History

2021-03-28 22:38:22 +03:00
name: Publish a gatsby project with SCP
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build project
run: |
2021-10-31 12:46:45 +03:00
sudo yarn global add gatsby-cli
2021-03-28 22:38:22 +03:00
yarn
gatsby build
- name: Publish to server via scp
2021-10-31 16:20:14 +03:00
run: |
yarn run deploy ${{ secrets.WEBMASTER_USERNAME }} ${{ secrets.WEBMASTER_PASSWORD }}