Skip to content

CI Squashfs

CI Squashfs #136

name: CI Squashfs
on:
schedule:
- cron: '1 1 */4 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo ln -sf /bin/bash /bin/sh
sudo apt-get install -y gh jq
- name: Create squashfs
run: sudo sh 2slackware2sb
- name: Remove old releases and tags
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
repo_name="${{ github.event.repository.name }}"
version_prefix="${repo_name}-0.8.0-"
gh release list --limit 100 --json tagName -q '.[].tagName' | grep "^${version_prefix}" | while read -r tag; do
gh release delete "$tag" --yes --cleanup-tag
done
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create "${{ github.event.repository.name }}-0.8.0-${{ github.run_number }}" "/tmp/output/fs-slackware.sb"