Fix not uploading deb package #10
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: Generate linux packages | |
on: | |
push: | |
branches: | |
- master | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- master | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build Debian pacakge | |
run: | | |
# Build docker image | |
docker buildx create --use --name devuan-dev --buildkitd-flags '--allow-insecure-entitlement security.insecure' | |
docker buildx build --builder devuan-dev -f debian/ceres.dockerfile -t devuan --allow security.insecure --output type=tar,dest=install.tar . | |
# Export it to install | |
mkdir install | |
sudo tar -C install -psxf install.tar | |
# Move content out | |
mv install/*.{deb,buildinfo,changes} ./ | |
mv install/metadata.yml . | |
# Clean up | |
sudo rm -rf install install.tar | |
- name: Build Arch pacakge | |
run: | | |
# Build docker image | |
docker buildx create --use --name archlinux-devel --buildkitd-flags '--allow-insecure-entitlement security.insecure' | |
docker buildx build --builder archlinux-devel -f archlinux.dockerfile -t archlinux --allow security.insecure --output type=tar,dest=install.tar . | |
# Export it to install | |
mkdir install | |
sudo tar -C install -psxf install.tar | |
# Move content out | |
mv install/*.pkg.tar* ./ | |
# Clean up | |
sudo rm -rf install install.tar | |
- name: Set Vars | |
id: vars | |
run: | | |
echo "arch=$(dpkg --print-architecture)" >>"$GITHUB_OUTPUT" | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
path: | | |
metadata.yml | |
grub-android-prober_*_*.buildinfo | |
grub-android-prober_*_*.changes | |
grub-android-prober_*_*.deb | |
grub-android-prober-*-*-*.pkg.tar* | |
release: | |
name: Release | |
needs: build | |
if: ((github.event_name == 'push' || github.event_name == 'workflow_dispatch') && startsWith(github.ref, 'refs/tags/')) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download buildfiles | |
id: download-buildfiles | |
uses: actions/download-artifact@v4 | |
with: | |
path: out | |
pattern: "*" | |
merge-multiple: true | |
- name: List Files | |
run: ls -R ${{ steps.download-buildfiles.outputs.download-path }} | |
- uses: "softprops/[email protected]" | |
with: | |
token: "${{ secrets.RELEASE_TOKEN }}" | |
prerelease: false | |
files: | | |
${{ steps.download-buildfiles.outputs.download-path }}/* |