Skip to content

update: action workflow #20

update: action workflow

update: action workflow #20

Workflow file for this run

name: Build and Run
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.5
- name: Setup env
run: cp .env.example .env && echo PORT=${{ secrets.PORT }} >> .env && echo JWT_SECRET_KEY=${{ secrets.JWT_SECRET_KEY }} >> .env
- name: Build and Run
run: |
go build -o main
./main