Skip to content

Commit

Permalink
Update deploy GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Oct 27, 2024
1 parent c0d8ba9 commit 643a650
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: CamiloGarciaLaRotta/watermelon-http-client@v1
id: request
with:
url: "https://spyfall.tannerkrewson.com/lock"
method: post
headers: '{"Content-Type": "application/json" }'
data: '{ "password": "${{ secrets.ADMIN_PASSWORD }}" }'
# - uses: CamiloGarciaLaRotta/watermelon-http-client@v1
# id: request
# with:
# url: "https://spyfall.tannerkrewson.com/lock"
# method: post
# headers: '{"Content-Type": "application/json" }'
# data: '{ "password": "${{ secrets.ADMIN_PASSWORD }}" }'

- name: Print the response code of the lock
run: echo ${{ steps.request.outputs.status }}
shell: bash
# - name: Print the response code of the lock
# run: echo ${{ steps.request.outputs.status }}
# shell: bash

- name: Wait 10 minutes for in-progress games to finish up (wait 8m + 2m for deploy)
uses: jakejarvis/[email protected]
with:
time: "8m"
# - name: Wait 10 minutes for in-progress games to finish up (wait 8m + 2m for deploy)
# uses: jakejarvis/[email protected]
# with:
# time: "8m"

- uses: actions/checkout@v4
with:
ref: "prod"
fetch-depth: "0"

- name: Dokku deploy
uses: dokku/github-action@master
uses: dokku/github-action@v1
with:
git_push_flags: "--force"
git_remote_url: "ssh://[email protected]:22/spyfall"
Expand Down

0 comments on commit 643a650

Please sign in to comment.