Skip to content

Commit

Permalink
Create create-release.yml (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Sep 14, 2024
1 parent 77366c9 commit 751b646
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Create Release

on:
pull_request:
branches:
- main
push:
branches:
- main

permissions:
contents: write

jobs:

# test-action:
# name: GitHub Actions Test
# runs-on: ubuntu-latest

# steps:
# - name: Checkout
# id: checkout
# uses: actions/checkout@v4

# - name: Test Local Action
# id: test-action
# uses: ./

# - name: Print Output
# id: output
# run: echo "${{ steps.test-action.outputs.time }}"

create-release:
name: Create release
# needs: [test-typescript, test-action]
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v2
with:
versionSpec: '5.x'

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v2
with:
useConfigFile: true

- name: Create Release
uses: ncipollo/[email protected]
with:
allowUpdates: false
skipIfReleaseExists: true
draft: false
makeLatest: true
tag: v${{ steps.gitversion.outputs.semVer }}
name: Release v${{ steps.gitversion.outputs.semVer }}
generateReleaseNotes: true
body:
Release ${{ steps.gitversion.outputs.semVer }} of ${{ github.event.repository.name }}

0 comments on commit 751b646

Please sign in to comment.