-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI/release builds to GitHub Actions
* Add CI build workflow using Github Actions * Add release build workflow on tags of format "v*" * Delete Travis configuration
- Loading branch information
1 parent
403abda
commit b37e056
Showing
4 changed files
with
66 additions
and
19 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,31 @@ | ||
name: CI build | ||
on: push | ||
jobs: | ||
ci: | ||
name: Build the rights application | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Checkout submodules | ||
uses: textbook/git-checkout-submodule-action@master | ||
- name: Cache ivy2 dependencies | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-ivy2 | ||
with: | ||
path: ~/.ivy2 | ||
key: ${{ runner.os }}-ivy2-${{ hashFiles('**/build.sbt') }} | ||
- name: Cache sbt dependencies | ||
uses: actions/cache@v2 | ||
env: | ||
cache-name: cache-sbt | ||
with: | ||
path: ~/.sbt | ||
key: ${{ runner.os }}-sbt-${{ hashFiles('**/build.properties') }} | ||
- name: Set up Scala | ||
uses: olafurpg/setup-scala@v10 | ||
with: | ||
java-version: adopt@1.8.0 | ||
- name: Run tests | ||
run: sbt test |
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,34 @@ | ||
name: Create release | ||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
jobs: | ||
build: | ||
name: Create release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Build rights application | ||
run: sbt clean dist | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
- 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 }} | ||
asset_path: ./target/universal/rights-app-dist.zip | ||
asset_name: rights-app-dist.zip | ||
asset_content_type: application/zip |
This file was deleted.
Oops, something went wrong.
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