1
0
mirror of https://github.com/pumpitupdev/pumptools.git synced 2024-12-18 09:25:52 +01:00
pumptools/.github/workflows/build-master.yaml
icex2 cdd7f15825 Add github action workflows for building and publishing
Build every push to master and upload artifacts. For version tags,
do the same plus create a github release.
2021-08-15 14:47:22 +02:00

41 lines
1.0 KiB
YAML

# Regarding build steps, this is a copy of the Dockerfile and should be kept in-sync
name: "Build pumptools"
on:
push:
branches:
- master
jobs:
build:
runs-on: "ubuntu-20.04"
steps:
- name: "Checkout repository"
uses: "actions/checkout@v2"
# Building bootstrapped using docker containers
- name: "Install prerequisites"
run: |
sudo apt-get update
sudo apt-get install -y runc containerd docker.io
- name: "Build"
run: |
make build-docker
# Do some unpacking of the dist zip. Artifact upload repackages stuff
- name: "Prepare artifact package"
run: |
mkdir artifact
cd artifact
unzip ../build/docker/pumptools-public.zip
cd ..
- name: "Upload artifact"
uses: "actions/upload-artifact@v2"
with:
name: pumptools-${{ github.sha }}
retention-days: 30
if-no-files-found: "error"
path: |
artifact/**