Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
15 changes: 10 additions & 5 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ on:
branches:
- main # Si attiva quando pushhi su main (dopo merge da staging)

permissions:
contents: write # Necessario per push di tag e branches

jobs:
create-release-tag:
runs-on: ubuntu-latest
permissions:
contents: write # Necessario per push di tag
outputs:
new_tag: ${{ steps.tag_version.outputs.new_tag }}

Expand All @@ -33,8 +32,8 @@ jobs:
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"

# Incrementa PATCH - MINOR - MAJOR
Comment thread
MoussaGerges9 marked this conversation as resolved.
PATCH=$((PATCH + 1))
MINOR=$((MINOR + 0))
PATCH=0
MINOR=$((MINOR + 1))
Comment thread
MoussaGerges9 marked this conversation as resolved.
MAJOR=$((MAJOR + 0))

# Nuova versione
Expand All @@ -51,6 +50,8 @@ jobs:

deploy-backend:
runs-on: ubuntu-latest
permissions:
contents: write # Necessario per push di branches
needs: create-release-tag

steps:
Expand Down Expand Up @@ -87,6 +88,8 @@ jobs:

deploy-frontend:
runs-on: ubuntu-latest
permissions:
contents: write # Necessario per push di branches
needs: create-release-tag

steps:
Expand Down Expand Up @@ -138,6 +141,8 @@ jobs:
create-github-release:
runs-on: ubuntu-latest
needs: [create-release-tag, deploy-backend, deploy-frontend]
permissions:
contents: write # Necessario per creare le release su GitHub

steps:
- uses: actions/checkout@v4
Expand Down
Loading
Loading