Add Cherry Red Theme #48
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
# 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: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: themes | |
path: out/*.zip | |
- name: Create release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ github.event_name == 'push' }} | |
with: | |
name: ${{ env.DISPLAY_NAME }} | |
tag_name: ${{ env.TAG_NAME }} | |
draft: false | |
prerelease: false | |
files: | | |
out/*.zip |