Skip to content

Commit

Permalink
actions to manual only, tag detected automatically.
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbeare committed May 15, 2021
1 parent e071f8c commit 28d0426
Showing 1 changed file with 23 additions and 18 deletions.
41 changes: 23 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# This is a basic workflow to help you get started with Actions

name: CI
name: BUILD

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -23,11 +23,15 @@ jobs:
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: oprypin/find-latest-tag@v1
with:
repository: DevelopmentalImagingMCRI/mantis
releases-only: true
id: tagfinder
- uses: actions/checkout@v2
with:
path: 'mantis'
submodules: 'true'

# Runs a set of commands using the runners shell
- name: Run ubuntu build
run: |
Expand All @@ -44,28 +48,24 @@ jobs:
with:
files: 'mantis_ubuntu.tgz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v1.0
release-tag: ${{ steps.tagfinder.outputs.tag }}

# - uses: meeDamian/[email protected]
# with:
# token: ${{ secrets.GITHUB_TOKEN }}
# tag: 'v1.0'
# files: 'mantis_ubuntu.tgz'
# gzip: 'false'
# allow_override: 'true'

buildOSX:
# The type of runner that the job will run on
runs-on: macos-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: oprypin/find-latest-tag@v1
with:
repository: DevelopmentalImagingMCRI/mantis
releases-only: true
id: tagfinder
- uses: actions/checkout@v2
with:
path: 'mantis'
submodules: 'true'

# Runs a set of commands using the runners shell
- name: Run ubuntu build
run: |
Expand All @@ -82,12 +82,17 @@ jobs:
with:
files: 'mantis_osx.tgz'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v1.0
release-tag: ${{ steps.tagfinder.outputs.tag }}

buildWindows:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: oprypin/find-latest-tag@v1
with:
repository: DevelopmentalImagingMCRI/mantis
releases-only: true
id: tagfinder
- uses: actions/checkout@v2
with:
path: 'mantis'
Expand Down Expand Up @@ -116,4 +121,4 @@ jobs:
with:
files: 'mantis_windows.zip'
repo-token: ${{ secrets.GITHUB_TOKEN }}
release-tag: v1.0
release-tag: ${{ steps.tagfinder.outputs.tag }}

0 comments on commit 28d0426

Please sign in to comment.