Skip to content

Obsidian Sync 2024-08-16 11:32:02 #146

Obsidian Sync 2024-08-16 11:32:02

Obsidian Sync 2024-08-16 11:32:02 #146

name: Go Build and Deploy
on:
workflow_dispatch:
push:
branches: [ main ]
pull_request:
branches: [ main ]
schedule: # everyday at 1831 UTC or 0001 IST
- cron: '31 18 * * *'
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.23.0-rc.2'
- name: Build
run: go build ./...
- name: Run
run: ./debugjois.dev
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-2
- name: Upload to S3
run: ./upload.sh