Skip to content

Add icon themes

Add icon themes #30

Workflow file for this run

# SPDX-FileCopyrightText: 2022 Sefa Eyeoglu <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
name: Package themes
on:
push:
branches:
- main
paths:
- "themes/**"
- "icons/**"
pull_request:
branches:
- main
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare
run: |
sudo apt-get update
sudo apt-get install -y parallel zip
- name: Package
run: |
mkdir -p out
parallel "zip -r out/{/}-theme.zip {}/" ::: themes/*
parallel "zip -r out/{/}-icons.zip {}/" ::: icons/*
echo "DISPLAY_NAME=$(date "+%Y-%m-%d %H:%M:%S")" >> "$GITHUB_ENV"
echo "TAG_NAME=$(date "+%Y-%m-%d_%s")" >> "$GITHUB_ENV"
- name: Create release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ env.GITHUB_TOKEN != '' }}
with:
name: ${{ env.DISPLAY_NAME }}
tag_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
files: |
out/*.zip