Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
drohit-cb committed May 2, 2024
1 parent 139aa3f commit 7831c50
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: Version 🔖

on:
push:
branches:
- main
paths:
- '.version'
on: push
# push:
# branches:
# - main
# paths:
# - '.version'

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -23,7 +23,7 @@ jobs:

- name: Get version from .version file
id: release_version
run: echo "VERSION=$(cat .version")" >> $GITHUB_OUTPUT
run: echo "VERSION=$(cat .version)" >> $GITHUB_OUTPUT

- name: Check if tag exists
id: check_tag
Expand All @@ -33,15 +33,15 @@ jobs:
echo "::set-output name=EXISTS::true"
fi
- name: Create Release
if: steps.check_tag.outputs.EXISTS != 'true'
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ steps.release_version.outputs.VERSION }}
name: Release v${{ steps.release_version.outputs.VERSION }}
draft: false
prerelease: false
generate_release_notes: true
make_latest: true
# - name: Create Release
# if: steps.check_tag.outputs.EXISTS != 'true'
# uses: softprops/action-gh-release@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: v${{ steps.release_version.outputs.VERSION }}
# name: Release v${{ steps.release_version.outputs.VERSION }}
# draft: false
# prerelease: false
# generate_release_notes: true
# make_latest: true

0 comments on commit 7831c50

Please sign in to comment.