-
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (36 loc) · 1.26 KB
/
dotnet.yml
File metadata and controls
40 lines (36 loc) · 1.26 KB
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
name: .NET
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Run Unit Tests
run: |
dotnet --version
dotnet restore ./NosCore.TravisLambda/NosCore.Travis/NosCore.Travis.csproj
dotnet restore ./NosCore.DonationLambda/NosCore.Donation/NosCore.Donation.csproj
dotnet build ./NosCore.TravisLambda/NosCore.Travis/NosCore.Travis.csproj -c Release
dotnet build ./NosCore.DonationLambda/NosCore.Donation/NosCore.Donation.csproj -c Release
- name: Package Lambda
run: |
dotnet tool install -g Amazon.Lambda.Tools
cd NosCore.TravisLambda/NosCore.Travis
dotnet lambda package
- name: Deploy
if: github.ref == 'refs/heads/master'
uses: appleboy/lambda-action@master
with:
aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws_region: us-west-2
function_name: noscore-travis
zip_file: NosCore.TravisLambda/NosCore.Travis/bin/Release/net6.0/NosCore.Travis.zip