diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index f605cb4..a4b1ca7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -18,10 +18,10 @@ jobs: 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 - env: - PORT: ${{ secrets.PORT }} - JWT_SECRET_KEY: ${{ secrets.JWT_SECRET_KEY }}