Create deploy.yml

This commit is contained in:
Dimitris Zervas 2020-09-15 00:34:22 +03:00
parent c4d057685b
commit 173ae842ca
No known key found for this signature in database
GPG Key ID: 5C27D7C9D1901A30

26
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Deploy
on:
push:
branches: [ master ]
create:
tags: [ '*' ]
jobs:
build:
runs-on: ubuntu-latest
container: kmkfw/base
steps:
- uses: actions/checkout@v2
- run: make test
- run: make dist
- run: make dist-deploy
if: github.event_name == 'push'
env:
CIRCLE_BRANCH: ${{GITHUB_REF_NAME}}
- run: make dist-deploy
if: github.event_name == 'create'
env:
CIRCLE_TAG: ${{GITHUB_REF_NAME}}