Skip to content

Merge pull request #40 from wednesday-solutions/alenbaby13-patch-1 #110

Merge pull request #40 from wednesday-solutions/alenbaby13-patch-1

Merge pull request #40 from wednesday-solutions/alenbaby13-patch-1 #110

Workflow file for this run

name: serverless-template-cd
on:
push:
branches:
- dev
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
version: 7
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Get branch name
id: vars
run: echo ::set-output name=stage::${GITHUB_REF#refs/*/}
- name: Set env.ENVIRONMENT_NAME
run: |
if [[ ${{steps.vars.outputs.stage}} == 'dev' ]]; then
echo "ENVIRONMENT_NAME=dev" >> "$GITHUB_ENV"
fi
- name: Install dependencies
run: pnpm i
- name: Commit badges
uses: EndBug/add-and-commit@v7
with:
author_name: Gitflow
author_email: git@wednesday.is
message: 'Update badges'
add: 'badges/'
push: false
# - name: Deploy
# run: pnpm deploy:dev
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}