Skip to content

Commit

Permalink
edit
Browse files Browse the repository at this point in the history
  • Loading branch information
usfalami committed Dec 30, 2024
1 parent da4d6d4 commit e0ff1d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
branches: [ "main" ]
paths-ignore: [ "README.md", "doc/**" ]
push:
branches: [ "main", "develop" ]
#branches: [ "main", "develop" ]
paths-ignore: [ "README.md", "doc/**" ]
jobs:
build:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Create release

on:
push:
tags:
- v*
branches: main

permissions:
contents: write
Expand All @@ -14,16 +14,16 @@ jobs:
runs-on: ubuntu-22.04
steps:
- name: Extract Maven version
id: projectVersion
run: echo "version=$(mvn org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
id: mVer
run: echo "version=$(mvn help:evaluate -DforceStdout -Dexpression=project.version -q)" >>$GITHUB_OUTPUT
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
ver: ${{ steps.projectVersion.outputs.version }}
ver: ${{ steps.mVer.outputs.version }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="v$ver" \
--generate-notes
echo "$(mvn org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)"
echo "$(mvn org.apache.maven.plugins:maven-help-plugin:3.3.0:evaluate -DforceStdout -Dexpression=project.version -q)"

0 comments on commit e0ff1d2

Please sign in to comment.