Skip to content

add release workflows to build arch package #9

add release workflows to build arch package

add release workflows to build arch package #9

Workflow file for this run

name: release
on:
push:
tags:
- "v*.*.*"
jobs:
debian:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build DEB
run: |
mkdir setuper_${{ github.ref_name }}
mkdir setuper_${{ github.ref_name }}/DEBIAN
mkdir setuper_${{ github.ref_name }}/usr
mkdir setuper_${{ github.ref_name }}/usr/lib/
mkdir setuper_${{ github.ref_name }}/usr/bin/
mv build/debian/control setuper_${{ github.ref_name }}/DEBIAN/control
mv setuper setuper_${{ github.ref_name }}/usr/bin/
mv lib/ setuper_${{ github.ref_name }}/usr/lib/setuper
dpkg-deb --build setuper_${{ github.ref_name }}
- name: Upload DEB
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: setuper_${{ github.ref_name }}.deb
arch:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build arch
run: |
mkdir /setuper
mkdir /setuper/src
cp build/arch/PKGBUILD /setuper/src/
cp setuper /setuper/src/
cp -r lib/ /setuper/src/
docker run --rm --volume $(pwd):/setuper --workdir /setuper archlinux:latest /bin/bash -c "/build/arch/build.sh"
- name: Upload arch
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: /setuper/setuper_${{ github.ref_name }}-1-any.pkg.tar.zst