Skip to content

More tweaks

More tweaks #9

name: Go Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v5
cache: false

Check failure on line 18 in .github/workflows/go-build-deploy.yml

View workflow run for this annotation

GitHub Actions / Go Build and Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/go-build-deploy.yml (Line: 18, Col: 7): Unexpected value 'cache'
- name: Install Go RC and build
run: |
go install golang.org/dl/go1.23rc2@latest
go1.23rc2 download
GOTOOLCHAIN=go1.23rc2 go build ./...
- name: Run
run: ./debugjois.dev
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1 # Replace with your AWS region
- name: Upload to S3
run: ./upload.sh