Skip to content

Commit

Permalink
add release step in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
hardingadonis committed Apr 5, 2024
1 parent b178356 commit b1a5550
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
28 changes: 20 additions & 8 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
push:
branches: ["main"]

permissions:
contents: write

jobs:
auto-build:
name: Auto build Aseprite for Windows x64
Expand Down Expand Up @@ -31,19 +34,28 @@ jobs:
with:
arch: x64

# - name: Build Aseprite
# run: |
# mkdir build
# cd build
# cmake "../src/aseprite" -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLAF_BACKEND=skia -DSKIA_DIR="../src/skia" -DSKIA_LIBRARY_DIR="../src/skia/out/Release-x64" -DSKIA_LIBRARY="../src/skia/out/Release-x64/skia.lib"
# ninja aseprite
- name: Build Aseprite
run: |
mkdir build
cd build
cmake "../src/aseprite" -G Ninja -DCMAKE_BUILD_TYPE=MinSizeRel -DLAF_BACKEND=skia -DSKIA_DIR="../src/skia" -DSKIA_LIBRARY_DIR="../src/skia/out/Release-x64" -DSKIA_LIBRARY="../src/skia/out/Release-x64/skia.lib"
ninja aseprite
- name: Get version
id: get_version
run: |
$version = Get-Content version.txt
echo "version=$version" >> $env:GITHUB_OUTPUT
- name: Test version
- name: Zip Aseprite
run: |
echo "Version: ${{ steps.get_version.outputs.version }}"
cd build/bin
7z a ../../Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}.zip *
- name: GH Release
uses: softprops/[email protected]
with:
name: Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}
tag_name: ${{ steps.get_version.outputs.version }}
files: |
Aseprite-Windows-x64-${{ steps.get_version.outputs.version }}.zip
4 changes: 2 additions & 2 deletions download.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def download_skia_for_windows(tag):

if __name__ == '__main__':
aseprite_tag = get_latest_tag_aseprite()
#clone_aseprite(aseprite_tag)
clone_aseprite(aseprite_tag)
save_aseprite_tag(aseprite_tag)

skia_tag = get_latest_tag_skia()
#download_skia_for_windows(skia_tag)
download_skia_for_windows(skia_tag)

0 comments on commit b1a5550

Please sign in to comment.