Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 17 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@ jobs:
- name: Go build
run: go build main.go
- name: go test
run: go test -v
###TODO: setup aws s3 deployment for private

deploy-app:
run: go test -v
- name: Upload artifact to S3 bucket
- uses: actions/upload-artifact@v2
with:
name: go-app
path: go-app
deploy-to-staging:
needs: build-app
runs-on: ubuntu-latest
steps:
- uses:

if: github.ref == 'refs/heads/staging'
steps:
- name: Download artifact from development build
- uses: actions/download-artifact@v2
with:
name: go-app
- name: Deploy to staging environment
run: |
# Add commands to deploy to staging environment