Skip to content

Update action.yml (#25) #15

Update action.yml (#25)

Update action.yml (#25) #15

Workflow file for this run

name: Continuous Integration
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 }}