Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
KnightChaser committed Feb 2, 2024
1 parent cab3f97 commit 3710cc2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ jobs:
run: go build -v .
deploy:
runs-on: ubuntu-latest
needs: build
needs: build # Continued from the build job
steps:
# Because the .env file is not in the repository, we need to create it
# using the secrets.ENV_FILE secret
- name: Create env file
run: |
touch ./.env
echo "${{ secrets.ENV_FILE }}" > ./.env
touch .env
echo "${{ secrets.ENV_FILE }}" > .env
echo .env
- name: Login to Dockerhub
uses: docker/login-action@v3
with:
Expand Down

0 comments on commit 3710cc2

Please sign in to comment.