1
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-06-29 04:37:00 +01:00

Add deploy config

This commit is contained in:
Jake Howard 2021-01-17 12:35:36 +00:00
parent 006f82b841
commit 1afb6e5101
Signed by: jake
GPG Key ID: 57AFB45680EDD477
2 changed files with 39 additions and 1 deletions

View File

@ -20,7 +20,7 @@ jobs:
- uses: egordm/gha-yarn-node-cache@v1
- run: yarn install
- run: npm run release
- run: npm run build
- name: Archive
uses: actions/upload-artifact@v2

38
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,38 @@
name: Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- uses: egordm/gha-yarn-node-cache@v1
- run: yarn install
- run: npm run release
- 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