add custom paths for config #53
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
with: | |
files: setuper_${{ github.ref_name }}.deb | |
arch: | |
runs-on: ubuntu-latest | |
container: | |
image: archlinux:base-devel | |
volumes: | |
- ./build/arch:/build | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Build arch | |
run: | | |
sed -i "s/VERSION/${{ github.ref_name }}/" ./build/arch/PKGBUILD | |
mkdir -p ./build/arch/src | |
cp ./setuper ./build/arch/src/ | |
cp -r ./lib/ ./build/arch/src/ | |
cd ./build/arch | |
useradd --no-create-home build | |
chown -R build:build ./ | |
sudo -u build makepkg | |
- name: Upload arch | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: ./build/arch/setuper-${{ github.ref_name }}-1-any.pkg.tar.zst |