Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix version bump workflow #219

Open
wants to merge 2 commits into
base: staging
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
blockchainluffy marked this conversation as resolved.
Show resolved Hide resolved

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
Loading