Skip to content

Commit

Permalink
Add initial Github Actions setup
Browse files Browse the repository at this point in the history
  • Loading branch information
karolsojko committed Jun 10, 2020
1 parent 159315b commit 1fb1ff1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Prod

on:
push:
branches: [ master ]

jobs:
build_and_deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- run: npm ci
- run: npm run build
- uses: jakejarvis/s3-sync-action@master
with:
args: --delete
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'dist'
DEST_DIR: 'extensions/extensions-manager'
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"name": "sn-extensions-manager",
"version": "1.2.4",
"engines": {
"node": ">=10.20.1 <12.0"
},
"main": "dist/dist.js",
"scripts": {
"lint": "eslint --cache --ignore-path .gitignore --ext .jsx,.js --format=node_modules/eslint-formatter-pretty .",
Expand Down

0 comments on commit 1fb1ff1

Please sign in to comment.