1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-17 23:39:03 +00:00
notes/.github/workflows/deploy.yml

39 lines
843 B
YAML
Raw Normal View History

2021-01-17 12:35:36 +00:00
name: Deploy
on:
push:
branches:
2021-01-17 12:38:57 +00:00
- master
2021-01-17 12:35:36 +00:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
2021-01-17 13:49:18 +00:00
node-version: '14'
2021-01-17 12:35:36 +00:00
- uses: egordm/gha-yarn-node-cache@v1
- run: yarn install
- run: npm run build
2021-01-17 12:35:36 +00:00
- name: Archive
uses: actions/upload-artifact@v2
with:
name: notes
path: public
2021-05-04 11:39:38 +01:00
- name: rclone
uses: wei/rclone@master
2021-01-17 12:35:36 +00:00
with:
2021-05-04 11:39:38 +01:00
args: sync public/ pages:notes.theorangeone.net/
2021-01-17 12:35:36 +00:00
env:
2021-05-04 11:39:38 +01:00
RCLONE_CONFIG_PAGES_TYPE: webdav
RCLONE_CONFIG_PAGES_URL: https://pages.theorangeone.net
RCLONE_CONFIG_PAGES_USER: github
RCLONE_CONFIG_PAGES_PASS: ${{ secrets.RCLONE_WEBDAV_PASSWORD }}