Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sweep: please create a Github Action (Windows based) to generate images by existing batch file (βœ“ Sandbox Passed) #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .github/workflows/generate_images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Generate Images
on: push
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install ImageMagick
run: choco install imagemagick
- name: Generate Images
run: .\generate_content.bat
5 changes: 4 additions & 1 deletion generate_content.bat
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
FOR /R .\source %%I IN (*.txt) DO IF NOT EXIST output\%%~nI.png magick -size 210x210 -font SimHei label:@source\\%%~nxI -bordercolor White -border 15 output\\%%~nI.png
FOR /R .\source %%I IN (*.txt) DO IF NOT EXIST output\%%~nI.png magick -size 210x210 -font SimHei label:@source\\%%~nxI -bordercolor White -border 15 output\\%%~nI.png

REM Upload generated PNG files as artifacts
FOR %%I IN (output\*.png) DO echo Uploading %%I as artifact && your_artifact_upload_command "%%I"
Loading