Skip to content

Commit

Permalink
ci: Added commands in build workflow to get info about the files and …
Browse files Browse the repository at this point in the history
…folders available in pwd
  • Loading branch information
SaptarshiSarkar12 committed Jul 13, 2023
1 parent 6eb7079 commit a8164e7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,18 +56,19 @@ jobs:
name: ${{ matrix.os }}-Build-Files
path: target

release-Drifty:
if: github.event_name == 'workflow_call'
demo-check-Drifty-artifacts:
runs-on: ubuntu-latest
needs: package-Drifty
steps:
- uses: actions/checkout@v3
- name: Get Drifty version from .version file
run: echo "VERSION=$(cat .version)" >> $GITHUB_ENV
run: echo "VERSION=$(jq .version version.json | sed -r 's/"//g')" >> $GITHUB_ENV
- name: Set Drifty version in pom.xml
run: mvn versions:set -DnewVersion=$VERSION
- name: Download Build artifacts
uses: actions/download-artifact@v3
- name: Create Release ($VERSION) with automated release notes
run: gh release create v$VERSION --generate-notes '/path/to/asset.extension#Asset-Display-Name' # Assets path to be added later
- name: List all present files
run: tree -a
# - name: Create Release ($VERSION) with automated release notes
# run: gh release create v$VERSION --generate-notes '/path/to/asset.extension#Asset-Display-Name' # Assets path to be added later

1 change: 0 additions & 1 deletion .version

This file was deleted.

3 changes: 3 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"version": "2.0.0"
}

1 comment on commit a8164e7

@vercel
Copy link

@vercel vercel bot commented on a8164e7 Jul 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.