-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (42 loc) · 1.2 KB
/
deploy_branch.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Deploy Branch
on: [push]
jobs:
dockerhub:
# https://github.com/marketplace/actions/publish-docker
name: Deploy Dockerhub
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: git archive -o docker/amici.tar.gz --format=tar.gz HEAD
- name: Publish to Registry
uses: elgohr/[email protected]
with:
name: dweindl/amici
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
workdir: docker/
dockerfile: Dockerfile
tag_names: true
sdist:
name: Deploy Python Source Distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
fetch-depth: 20
- name: apt
run: |
sudo apt-get update \
&& sudo apt-get install -y swig3.0
- name: pip
run: |
pip3 install --upgrade --user wheel \
&& pip3 install --upgrade --user setuptools
- name: Create AMICI sdist
run: |
cd python/sdist && /usr/bin/python3 setup.py sdist
- name: "Upload artifact: sdist"
uses: actions/upload-artifact@v1
with:
name: sdist
path: python/sdist/dist