-
Notifications
You must be signed in to change notification settings - Fork 4
53 lines (45 loc) · 1.39 KB
/
fake-breaking-news.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Fake breaking news lambda
on:
push:
branches:
- "**"
paths:
- fakebreakingnewslambda/**
- common/**
- api-models/**
- .github/workflows/fake-breaking-news.yml
# pull_request:
workflow_dispatch:
# allow queued workflows to interrupt previous runs
concurrency:
group: ${{ github.workflow }}-${{ github.event.number || github.ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: corretto
cache: sbt
java-version: 11
- uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: eu-west-1
role-to-assume: ${{ secrets.GU_RIFF_RAFF_ROLE_ARN }}
- name: Compile, test and assembly
run: sbt compile test fakebreakingnewslambda/assembly
- name: Upload to riff-raff
uses: guardian/actions-riff-raff@v2
with:
projectName: mobile-n10n:fakebreakingnewslambda
configPath: fakebreakingnewslambda/riff-raff.yaml
contentDirectories: |
fakebreakingnewslambda:
- fakebreakingnewslambda/target/scala-2.13/fakebreakingnewslambda.jar
fakebreakingnewslambda-cfn:
- fakebreakingnewslambda/fakebreakingnewslambda-cfn.yaml