Skip to content

Commit

Permalink
try dynamic version number (won't change right now)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeynep committed Feb 7, 2024
1 parent e5a6fe6 commit 74e62d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/pointmark-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
distribution: 'adopt'
java-version: '11'

- name: Build Project # This would actually build your project, using zip for an example artifact
- name: Build Project
working-directory: CoordinateExporter
run: |
pwd
Expand All @@ -36,7 +36,7 @@ jobs:
mvn compile
- name: Package JAR # This would actually build your project, using zip for an example artifact
- name: Package JAR
working-directory: CoordinateExporter
run: |
pwd
Expand All @@ -51,11 +51,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.run_number }}
release_name: ${{ github.run_number }}
release_name: Release \#${{ github.run_number }}
body: |
Changes in this Release:
- First Change
- Second Change
- None for now, testing workflow
- name: Print Directory
run: |
Expand All @@ -67,8 +66,9 @@ jobs:
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION_NUMBER: ${{ env.VERSION_NUMBER }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: CoordinateExporter/target/CoordinateExporter-0.1.0-SNAPSHOT-shaded.jar
asset_name: CoordinateExporter/target/CoordinateExporter-0.1.0-SNAPSHOT-shaded.jar
asset_name: CoordinateExporter-${{ env.VERSION_NUMBER }}-SNAPSHOT-shaded.jar
asset_content_type: application/java-archive

0 comments on commit 74e62d7

Please sign in to comment.