-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (31 loc) · 1009 Bytes
/
makefile-squashfs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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"