Skip to content

Commit

Permalink
Try to publish with github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexITC committed Aug 31, 2020
1 parent cb7e87b commit bb7b8d4
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Native Image
on:
push:
branches:
- master
pull_request:
release:
types: [published]
jobs:
native-image:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest]
include:
- os: macOS-latest
artifact: my-photo-timeline-x86_64-apple-darwin
binary: target/native-image/my-photo-timeline
- os: ubuntu-latest
artifact: my-photo-timeline-x86_64-pc-linux
binary: target/native-image/my-photo-timeline
steps:
- uses: actions/checkout@v2
- uses: olafurpg/setup-scala@v6
- run: git fetch --tags || true
- run: sbt nativeImage
- uses: actions/upload-artifact@master
with:
path: ${{ matrix.binary }}
name: ${{ matrix.artifact }}
- name: Upload release
if: github.event_name == 'release'
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ matrix.binary }}
asset_name: ${{ matrix.artifact }}
asset_content_type: application/zip

0 comments on commit bb7b8d4

Please sign in to comment.