Skip to content

Commit

Permalink
Merge pull request #219 from shutter-network/fix/125-version-tag-work…
Browse files Browse the repository at this point in the history
…flow

fix version bump workflow
  • Loading branch information
blockchainluffy authored Nov 26, 2024
2 parents f74119d + d91dbf1 commit 315431f
Showing 1 changed file with 20 additions and 14 deletions.
34 changes: 20 additions & 14 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,12 @@ jobs:
exit 1 # Exit if the branch name is not valid
fi
# Staging Deployment (with Tagging)
deploy_instance_staging:
version_bump:
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: run_cypress_tests
needs: [run_cypress_tests, validate_branch_name]

steps:
- name: Checkout code
uses: actions/checkout@v3

# Fetch tags to get the latest version tag
- name: Fetch tags
run: git fetch --tags

# Install semver for version bumping
- name: Install semver
run: npm install -g semver

# Determine version bump after a merge to staging
- name: Determine version bump
id: version_bump
Expand Down Expand Up @@ -131,6 +119,24 @@ jobs:
git tag "v${{ env.NEXT_VERSION }}"
git push origin "v${{ env.NEXT_VERSION }}"
# Staging Deployment (with Tagging)
deploy_instance_staging:
if: github.ref == 'refs/heads/staging' && github.event_name == 'push'
runs-on: ubuntu-latest
needs: [run_cypress_tests, version_bump]

steps:
- name: Checkout code
uses: actions/checkout@v3

# Fetch tags to get the latest version tag
- name: Fetch tags
run: git fetch --tags

# Install semver for version bumping
- name: Install semver
run: npm install -g semver

# Setup SSH for deployment
- name: Setup SSH
run: |
Expand Down

0 comments on commit 315431f

Please sign in to comment.