Skip to content

Ignore unrelated changes in support/ when triggering CI #1494

Ignore unrelated changes in support/ when triggering CI

Ignore unrelated changes in support/ when triggering CI #1494

name: ruby_event_store-browser_assets
on:
push:
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-20.04
env:
WORKING_DIRECTORY: ruby_event_store-browser
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
cache-dependency-path: ${{ env.WORKING_DIRECTORY }}/elm/package-lock.json
- uses: actions/cache@v3
with:
path: ~/.elm
key: elm-${{ hashFiles(format('{0}/elm/elm.json', env.WORKING_DIRECTORY)) }}
- run: make install-npm
working-directory: ${{ env.WORKING_DIRECTORY }}
- run: make build-npm
working-directory: ${{ env.WORKING_DIRECTORY }}
- uses: actions/upload-artifact@v3
with:
name: ruby_event_store_browser.js
path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.js
- uses: actions/upload-artifact@v3
with:
name: ruby_event_store_browser.css
path: ${{ env.WORKING_DIRECTORY }}/public/ruby_event_store_browser.css
- uses: aws-actions/configure-aws-credentials@v1-node16
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- run: echo "SHORT_SHA=$(git rev-parse --short=12 HEAD)" >> $GITHUB_ENV
- run: aws s3 sync ${{ env.WORKING_DIRECTORY }}/public s3://ruby-event-store-assets/${{ env.SHORT_SHA }}