Skip to content

Commit

Permalink
feat(actions): build themes
Browse files Browse the repository at this point in the history
Signed-off-by: Sefa Eyeoglu <[email protected]>
  • Loading branch information
Scrumplex committed Oct 21, 2022
1 parent 3dce332 commit fc6f557
Show file tree
Hide file tree
Showing 2 changed files with 276 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# SPDX-FileCopyrightText: 2022 Sefa Eyeoglu <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later

name: Package themes

on:
push:
branches:
- main
paths-ignore:
- "README.md"

jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Prepare
run: |
sudo apt-get update
sudo apt-get install -y parallel zip
- name: Package
working-directory: themes
run: |
parallel "cd {} && zip -r ../{}.zip custom/" ::: *
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 }}
with:
name: ${{ env.DISPLAY_NAME }}
tag_name: ${{ env.TAG_NAME }}
draft: false
prerelease: false
files: |
themes/*.zip
Loading

0 comments on commit fc6f557

Please sign in to comment.