-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from catppuccin/ci/release
add release ci
- Loading branch information
Showing
76 changed files
with
72 additions
and
1,908 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Build and Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Just | ||
run: sudo snap install --edge --classic just | ||
|
||
- name: Build and Package | ||
run: just zip | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: dist/*.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
dist/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
_default: | ||
@just --list | ||
|
||
output_dir := "dist" | ||
|
||
# Remove output directory | ||
clean: | ||
rm -rfv {{output_dir}} | ||
|
||
_build flavor: | ||
# make sure the directories we need exist | ||
mkdir -p "{{output_dir}}/catppuccin-{{flavor}}" | ||
|
||
# copy the files to the correct location | ||
cp -r src/* "{{output_dir}}/catppuccin-{{flavor}}" | ||
|
||
# replace the theme name in the metadata file | ||
sed -i -e "s/%%THEME%%/{{flavor}}/g" "{{output_dir}}/catppuccin-{{flavor}}/metadata.desktop" | ||
|
||
# handle items that are different per theme | ||
cp "pertheme/{{flavor}}.png" "{{output_dir}}/catppuccin-{{flavor}}/preview.png" | ||
cp "pertheme/{{flavor}}.conf" "{{output_dir}}/catppuccin-{{flavor}}/theme.conf" | ||
|
||
# Build theme | ||
build: clean (_build "latte") (_build "frappe") (_build "macchiato") (_build "mocha") | ||
|
||
_zip flavor: | ||
zip -r {{output_dir}}/catppuccin-{{flavor}}.zip {{output_dir}}/catppuccin-{{flavor}} | ||
|
||
# Generate zips | ||
zip: build (_zip "latte") (_zip "frappe") (_zip "macchiato") (_zip "mocha") | ||
|
||
# Install themes | ||
install: build | ||
cp -r {{output_dir}}/catppuccin-* /usr/share/sddm/themes/ |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.