Skip to content

Commit

Permalink
Deploy using Github Action
Browse files Browse the repository at this point in the history
  • Loading branch information
naku committed Dec 28, 2020
1 parent e20fea7 commit 275d407
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 16 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Build and deploy Play module

on:
push:
tags:
- 'v*'

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
- name: Checkout
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '2.x'
- name: Build
env:
PLAY_VERSION: 1.5.3
run: |
wget -nv http://downloads.typesafe.com/play/${PLAY_VERSION}/play-${PLAY_VERSION}.zip
unzip -q play-${PLAY_VERSION}.zip
play-${PLAY_VERSION}/play deps --sync
zip -r package.zip app conf lib src *.md LICENSE play.plugins
- name: Deploy
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
VERSION: ${{ steps.get_version.outputs.VERSION }}
run: curl -u "${NEXUS_USERNAME}:${NEXUS_PASSWORD}" -X PUT --upload-file package.zip https://nexus.sismics.com/repository/sismics/docker-${VERSION}.zip;
- name: Create Github Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ steps.get_version.outputs.VERSION }}
16 changes: 0 additions & 16 deletions .travis.yml

This file was deleted.

0 comments on commit 275d407

Please sign in to comment.