-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
115 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
name: Releases | ||
on: | ||
push: | ||
# Sequence of patterns matched against refs/tags | ||
branches: | ||
- main | ||
tags: | ||
- 'v1*' # 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 | ||
working-directory: CoordinateExporter | ||
run: | | ||
pwd | ||
ls -la | ||
mvn clean | ||
- name: Package JAR | ||
working-directory: CoordinateExporter | ||
run: | | ||
pwd | ||
ls -la | ||
mvn package | ||
ls -la target | ||
- 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: | | ||
Release #${{ github.run_number }} | ||
body: | | ||
Changes in this Release: | ||
- None for now, testing workflow | ||
- name: Upload Release Asset | ||
id: upload-release-asset | ||
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.jar | ||
asset_name: Coordinate_Exporter-0.1.0.jar | ||
asset_content_type: application/java-archive | ||
|
||
# build_jars: | ||
# name: package pointmark into FIJI | ||
# runs-on: ubuntu-latest | ||
# strategy: | ||
# fail-fast: false | ||
# matrix: | ||
# fiji_target: [ linux64, win64, macosx ] | ||
# steps: | ||
# - name: checkout repo | ||
# id: checkout_repo | ||
# uses: actions/checkout@v4 | ||
# | ||
# - name: Fetch all tags | ||
# run: git fetch --tags | ||
# | ||
# - name: List all tags | ||
# run: git tag | ||
# | ||
# - name: setup JDK | ||
# uses: actions/setup-java@v4 | ||
# id: jdk_setup | ||
# with: | ||
# distribution: 'adopt' | ||
# java-version: '11' | ||
# | ||
# - name: build JAR | ||
# run: bash ./.github/scripts/build-jar.sh | ||
# | ||
# - name: copy plugins and macros | ||
# run: bash ./.github/scripts/collect-jars.sh | ||
# | ||
# - name: package for ${{ matrix.fiji_target }} | ||
# run: bash ./.github/scripts/pkg-${{ matrix.fiji_target }}.sh | ||
# | ||
# - name: upload release ZIP | ||
# id: upload_zip | ||
# uses: softprops/action-gh-release@v2 | ||
# with: | ||
# fail_on_unmatched_files: true | ||
# prerelease: true | ||
# files: fiji-${{ matrix.fiji_target }}.zip | ||
# tag_name: "v${{ github.run_number }}" | ||
# release_name: Release v${{ github.run_number }} | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |