print directory #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Releases | |
on: | |
push: | |
# Sequence of patterns matched against refs/tags | |
branches: | |
- main | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10 | |
# name: Create Release | |
jobs: | |
release_pointmark: | |
name: Release Pointmark | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
id: release_pointmark | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: JDK Setup | |
uses: actions/setup-java@v2 | |
with: | |
distribution: 'adopt' | |
java-version: '11' | |
- name: Build Project # This would actually build your project, using zip for an example artifact | |
run: | | |
cd CoordinateExporter | |
mvn clean | |
mvn compile | |
- name: Print current working directory | |
run: | | |
pwd | |
- name: Package JAR # This would actually build your project, using zip for an example artifact | |
run: | | |
mvn package | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.run_number }} | |
release_name: ${{ github.run_number }} | |
body: | | |
Changes in this Release: | |
- First Change | |
- Second Change | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/upload-release-asset@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
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.jar | |
asset_name: CoordinateExporter.jar | |
asset_content_type: application/java-archive | |
# jobs: | |
# changelog: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - uses: actions/checkout@v2 | |
# - name: Create release | |
# id: changelog | |
# uses: TriPSs/conventional-changelog-action@v3.7.1 | |
# with: | |
# github-token: ${{ secrets.CHANGELOG_RELEASE }} | |
# - name: create release | |
# uses: actions/create-release@v1 | |
# if: ${{ steps.changelog.outputs.skipped == 'false' }} | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.CHANGELOG_RELEASE }} | |
# with: | |
# tag_name: ${{ steps.changelog.outputs.tag }} | |
# release_name: ${{ steps.changelog.outputs.tag }} | |
# body: ${{ steps.changelog.outputs.clean.changelog }} | |
# build: | |
# name: Create Release | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v2 | |
# - name: Create Release | |
# id: create_release | |
# uses: actions/create-release@v1 | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | |
# with: | |
# tag_name: ${{ github.ref }} | |
# release_name: Release ${{ github.ref }} | |
# body: | | |
# Changes in this Release | |
# - First Change | |
# - Second Change | |
# draft: false | |
# prerelease: false |