-
Notifications
You must be signed in to change notification settings - Fork 35
46 lines (41 loc) · 1.19 KB
/
create-icons.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
40
41
42
43
44
45
46
name: Create Icons
on:
workflow_dispatch:
push:
branches:
- '*'
- '!master' # excludes master
paths:
- '**/icon.svg'
jobs:
build:
name: Create Icons
runs-on: ubuntu-latest
steps:
# CHECKOUT CODE
- id: checkout-code
name: Checkout code
uses: actions/checkout@v2
# CREATE ICONS
- id: create-icons
name: Create icons for different platforms
run: |
# Create icons for different platforms
convert -version
convert -background transparent -density 100 \
-resize 64x64 \
desktop/deploy/icon.svg \
desktop/deploy/icon.png
convert -background transparent -density 100 \
-define icon:auto-resize -colors 256 \
desktop/deploy/icon.svg \
desktop/deploy/icon.ico
- id: push-icons
name: Commit icons to repository
run: |
# Commit icons to repository
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add ./desktop/deploy/icon.*
git commit -m "Create icons for different platforms"
git push