Skip to content

Commit

Permalink
Update deploy.yml (#263)
Browse files Browse the repository at this point in the history
Co-authored-by: gstraccini[bot] <150967461+gstraccini[bot]@users.noreply.github.com>
  • Loading branch information
guibranco and gstraccini[bot] authored Sep 1, 2024
1 parent 942c3ee commit e3a9fb5
Showing 1 changed file with 23 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,28 @@ jobs:
build:
name: Build
runs-on: ubuntu-latest
outputs:
fullSemVer: ${{ steps.gitversion.outputs.fullSemVer }}

steps:

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/[email protected]
with:
versionSpec: '5.x'

- name: Set up Node.js ${{ matrix.node-version }}
- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/[email protected]
with:
useConfigFile: true

- name: Set up Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20.x
Expand Down Expand Up @@ -47,15 +62,18 @@ jobs:
name: Create release
needs: build
runs-on: ubuntu-latest
env:
fullSemVer: ${{ needs.deploy_service.outputs.fullSemVer }}

steps:

- name: Create Release
uses: ncipollo/[email protected]
with:
skipIfReleaseExists: true
allowUpdates: false
draft: false
makeLatest: true
tag: v1.1.${{ github.run_number }}
name: Release v1.1.${{ github.run_number }}
tag: v${{ env.fullSemVer }}
name: Release v${{ env.fullSemVer }}
generateReleaseNotes: true
body: Release 1.1.${{ github.run_number }} of Vagas Aggregator UI
body: Release ${{ env.fullSemVer }} of ${{ github.repository }}

0 comments on commit e3a9fb5

Please sign in to comment.