Skip to content

Bump Amazon.Lambda.Core and Amazon.Lambda.RuntimeSupport (#302) #289

Bump Amazon.Lambda.Core and Amazon.Lambda.RuntimeSupport (#302)

Bump Amazon.Lambda.Core and Amazon.Lambda.RuntimeSupport (#302) #289

Workflow file for this run

name: Main
on:
push:
branches: [ "main" ]
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
- uses: oven-sh/setup-bun@v2
- name: Build / Release
run: dotnet fsi ./build.fsx --push
env:
VITE_API_ROOT: ${{ secrets.API_ROOT }}
TELPLIN_NUGET_KEY: ${{ secrets.TELPLIN_NUGET_KEY }}
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./output
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup dotnet
uses: actions/setup-dotnet@v4
- name: Restore local tools
run: dotnet tool restore
- name: Package lambda
working-directory: tool/server
run: dotnet lambda package
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-region: ${{ secrets.AWS_REGION }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- uses: pulumi/actions@v6
with:
command: up
stack-name: telplin
work-dir: ./src/Telplin.Deploy
env:
PULUMI_ACCESS_TOKEN: ${{ secrets.PULUMI_ACCESS_TOKEN }}