From 33e79e75db835ba5e4a6df1357b4ff0ec6f01095 Mon Sep 17 00:00:00 2001 From: Luke Cheng Date: Wed, 31 Jan 2024 22:24:44 -0500 Subject: [PATCH] fixed backend deploy workflow --- .github/workflows/backend-deploy.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/backend-deploy.yml b/.github/workflows/backend-deploy.yml index a874ed7..103606b 100644 --- a/.github/workflows/backend-deploy.yml +++ b/.github/workflows/backend-deploy.yml @@ -25,13 +25,15 @@ jobs: deploy: needs: test + environment: github-pages runs-on: ubuntu-latest steps: - - name: Checkout ./backend of GitHub repository + - name: Checkout repository to github-repo uses: actions/checkout@v4 with: path: github-repo + url: ${{ steps.deployment.outputs.page_url }} - name: Deploy to glitch.com # best way so far to deploy to glitch.com run: | @@ -41,5 +43,5 @@ jobs: cd glitch-repo cp -rf ${{ github.workspace }}/github-repo/backend/* . git add . - git commit -m "Github Actions: deploy to glitch.com" - git push ${{ secrets.BACKEND_GIT_URL }} + git commit -m "Automatic Github actions from ${{ steps.deployment.outputs.page_url }}" + git push ${{ secrets.BACKEND_GIT_URL }} \ No newline at end of file