1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-17 00:19:02 +00:00
notes/.github/workflows/deploy.yml
2021-01-17 13:49:18 +00:00

38 lines
831 B
YAML

name: Deploy
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- uses: egordm/gha-yarn-node-cache@v1
- run: yarn install
- run: npm run build
- name: Archive
uses: actions/upload-artifact@v2
with:
name: notes
path: public
- uses: jakejarvis/s3-sync-action@master
with:
args: --follow-symlinks --delete
env:
AWS_S3_BUCKET: notes.theorangeone.net
AWS_ACCESS_KEY_ID: github
AWS_SECRET_ACCESS_KEY: ${{ secrets.MINIO_SECRET_KEY }}
SOURCE_DIR: public
AWS_S3_ENDPOINT: https://pages.theorangeone.net