Skip to content

token fix

token fix #80

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: jerseyhub project CI/CD
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Build
run: go build -v ./...
# - name: Test
# run: go test -v ./...
# - name: Deploy to aws instance
# uses: appleboy/ssh-action@master
# with:
# host: ${{secrets.EC2_PUBLIC_IP}}
# username: ubuntu
# key: ${{secrets.EC2_SSH_KEY}}
# script: |
# echo "Connected to AWS EC2 instance"
# cd JERSEYHUB-e-commerce-CLEAN-ARCH-GO
# git pull
# go build -o api ./cmd/api
# sudo systemctl restart go_app.service