Skip to content

Commit

Permalink
fix deploy to prod
Browse files Browse the repository at this point in the history
  • Loading branch information
grzanka committed Oct 4, 2023
1 parent c711212 commit 8cafab2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Node.js CI
on:
push:
branches: [master]
tags: ['v*']
pull_request:
branches: [master]

Expand Down Expand Up @@ -54,7 +55,7 @@ jobs:
deploy-to-github-registry:
needs: [build_and_test]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-web
Expand Down Expand Up @@ -105,7 +106,6 @@ jobs:
deploy_gh_pages:
runs-on: ubuntu-latest
needs: [build_and_test]
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
Expand All @@ -132,6 +132,7 @@ jobs:
ssh-private-key: ${{ secrets.WEBDEV }}

- name: Deploy to dev instance 🚀
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: |
git remote set-url origin [email protected]:yaptide/web_dev.git
npm run deploy -- -u "github-actions-bot <[email protected]>" -r "[email protected]:yaptide/web_dev.git"
Expand Down

0 comments on commit 8cafab2

Please sign in to comment.