Merge pull request #80 from Paker30/undo_commit #162
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Node.js CI | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node version | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '20.x' | |
- run: npm install | |
- run: git config user.email "${{ secrets.EMAIL }}" && git config user.name "${{ github.actor }}" | |
- run: npm run release | |
- name: Push release | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
tags: true | |
branch: ${{ github.ref }} | |
- run: npm run build | |
- run: echo DEPLOY && ls -lhS public | |
- name: Deploy into S3 | |
uses: opspresso/action-s3-sync@master | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: "eu-central-1" | |
FROM_PATH: "./public" | |
DEST_PATH: "s3://cellar.com" | |
OPTIONS: "--acl public-read" |