Skip to content

Commit

Permalink
chore: rename branches in CI/CD (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
luislhl authored Nov 22, 2024
1 parent 3c2d1e7 commit 0cef5ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: deploy

on:
push:
branches: [master]
branches: [release]
tags: ['v*']

permissions:
Expand Down Expand Up @@ -51,7 +51,7 @@ jobs:
retention-days: 1

deploy-testnet-explorer:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/release'
needs: dependencies
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
make deploy site=testnet
deploy-nano-testnet-explorer:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/release'
needs: dependencies
runs-on: ubuntu-latest
steps:
Expand All @@ -105,7 +105,7 @@ jobs:
make deploy site=nano-testnet
deploy-ekvilibro-testnet-explorer:
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/release'
needs: dependencies
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: PR validation

on:
push:
branches: [master, dev]
branches: [master, release]
pull_request:
branches:
- dev
- release
- master

jobs:
Expand Down
4 changes: 2 additions & 2 deletions RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ Create a git tag and a new release on GitHub.
## Deploying
Deploys are automated using Github Actions.

To deploy to the `testnet` website, simply commit to the `master` branch.
The `testnet` website will be deployed on commits to the `release` branch.

To deploy to the `mainnet` website, create a release in Github using a tag in the format `v0.0.0`. You should use the same version that you updated in the files in the previous section.
To deploy to the `mainnet` website, create a release in Github using a tag in the format `v0.0.0` and pointing to the `release` branch. You should use the same version that you updated in the files in the previous section.

0 comments on commit 0cef5ac

Please sign in to comment.