Add default price until we have a better idea #68
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Faucet Lambda | |
on: | |
push: | |
branches: | |
- development | |
paths: | |
- 'lib/**' | |
- 'cmd/faucet.superposition/**' | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- id: go-cache-paths | |
run: | | |
echo "::set-output name=go-build::$(go env GOCACHE)" | |
echo "::set-output name=go-mod::$(go env GOMODCACHE)" | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Go Build Cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-build }} | |
key: ${{ runner.os }}-go-build-${{ hashFiles('**/go.sum') }} | |
- name: Go Mod Cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.go-cache-paths.outputs.go-mod }} | |
key: ${{ runner.os }}-go-mod-${{ hashFiles('**/go.sum') }} | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.23.2' | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y zip | |
- name: Build lambda zip | |
run: | | |
cd cmd/faucet.superposition | |
make lambda | |
- name: Deploy to AWS Lambda | |
env: | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_REGION: ap-southeast-2 | |
run: | | |
aws lambda update-function-code --function-name superposition-faucet \ | |
--zip-file fileb://cmd/faucet.superposition/bootstrap.zip >&2 >/dev/null |