-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add Github Actions workflow for image generation
- Loading branch information
Showing
4 changed files
with
69 additions
and
7 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,45 @@ | ||
--- | ||
name: Generate Images | ||
|
||
on: # yamllint disable-line rule:truthy | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
conversion: | ||
name: Generate Images | ||
runs-on: ubuntu-latest | ||
container: | ||
image: linuxserver/inkscape:1.3.2 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install dependencies | ||
run: | | ||
apk --no-cache add imagemagick | ||
apk --no-cache add exiftool | ||
- name: convert images | ||
run: | | ||
./conversion-script.sh | ||
- name: package images | ||
shell: bash | ||
run: | | ||
# The tar is required to preserve symlinks | ||
tar cvf device-pictures-jpg.tar README.md pictures-jpg/ | ||
tar cvf device-pictures-png.tar README.md pictures-png/ | ||
- name: upload JPG archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: device-pictures-jpg.tar | ||
if-no-files-found: error | ||
path: device-pictures-jpg.tar | ||
|
||
- name: upload PNG archive | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: device-pictures-png.tar | ||
if-no-files-found: error | ||
path: device-pictures-png.tar |
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
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,21 @@ | ||
--- | ||
on: | ||
workflow_dispatch: | ||
push: | ||
paths-ignore: | ||
- '.gitignore' | ||
branches: | ||
- main | ||
|
||
jobs: | ||
shellcheck: | ||
uses: ./.github/workflows/shellcheck.yml | ||
|
||
svglint: | ||
uses: ./.github/workflows/svglint.yml | ||
|
||
generate-images: | ||
needs: | ||
- shellcheck | ||
- svglint | ||
uses: ./.github/workflows/generate-images.yml |