Skip to content

Commit

Permalink
Merge pull request #52 from b123400/play-30
Browse files Browse the repository at this point in the history
Add Github action
  • Loading branch information
zdavatz committed Mar 21, 2024
2 parents a520399 + 3f44b54 commit 25ed861
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
@@ -0,0 +1,20 @@
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '17'
- run: |
./bin/activator dist
- name: Upload server jar
uses: actions/upload-artifact@v4
with:
name: server-jar
retention-days: 7
path: target/universal/amikoweb-1.0-SNAPSHOT.zip
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,24 @@
name: Release
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v4
with:
distribution: 'adopt' # See 'Supported distributions' for available options
java-version: '17'
- run: |
./bin/activator dist
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
artifacts: |
target/universal/amikoweb-1.0-SNAPSHOT.zip

0 comments on commit 25ed861

Please sign in to comment.