Skip to content

Use erlang 27 and latest grisp_connect (#4) #11

Use erlang 27 and latest grisp_connect (#4)

Use erlang 27 and latest grisp_connect (#4) #11

Workflow file for this run

name: Erlang CI/CD
on:
push:
branches: [ "main" ]
permissions:
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
otp: ['27.1']
rebar3: ['3.24.0']
steps:
- uses: erlef/setup-beam@v1
with:
otp-version: ${{matrix.otp}}
rebar3-version: ${{matrix.rebar3}}
- uses: actions/checkout@v4
- name: Compile
run: |
rebar3 compile
- name: Deploy
run: |
rebar3 grisp deploy
- name: Zip
run: |
cd _deploy
zip -r ../grisp_auto_link.zip ./*
- uses: actions/upload-artifact@v4
with:
name: grisp_auto_link.zip
path: grisp_auto_link.zip
compression-level: 0
- name: Upload to S3
run: aws s3 cp --acl public-read --storage-class INTELLIGENT_TIERING grisp_auto_link.zip s3://grisp/platforms/grisp2/grisp_auto_link/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.GRISP_S3_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.GRISP_S3_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: "us-east-1"