Skip to content

Commit

Permalink
fixed backend deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Lujia-Cheng committed Feb 1, 2024
1 parent 3c5f9f6 commit 33e79e7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/backend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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 }}

0 comments on commit 33e79e7

Please sign in to comment.