CI Squashfs #136
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: 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" |