From c3908a3e1d2a7a5eda09d7579bbced95eb373e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Minh=20V=C6=B0=C6=A1ng?= Date: Thu, 4 Apr 2024 20:24:09 +0700 Subject: [PATCH] add github action and test get version steps --- .editorconfig | 3 +++ .github/workflows/auto-build.yml | 23 +++++++++++++++++++++++ get_version.bat | 3 +++ 3 files changed, 29 insertions(+) create mode 100644 .editorconfig create mode 100644 .github/workflows/auto-build.yml create mode 100644 get_version.bat diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..1528162 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,3 @@ +[*.{yml,md}] +indent_style = space +indent_size = 2 \ No newline at end of file diff --git a/.github/workflows/auto-build.yml b/.github/workflows/auto-build.yml new file mode 100644 index 0000000..ce69aac --- /dev/null +++ b/.github/workflows/auto-build.yml @@ -0,0 +1,23 @@ +name: Auto build Aseprite + +on: + push: + branches: ["main"] + +jobs: + auto-build: + name: Auto build Aseprite for Windows x64 + runs-on: windows-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Get Aseprite version + id: get_version + run: | + echo "version=$(./get_version.bat)" >> $GITHUB_OUTPUT + + - name: Print Aseprite version + run: | + echo "Aseprite version: ${{ steps.get_version.outputs.version }}" diff --git a/get_version.bat b/get_version.bat new file mode 100644 index 0000000..ebdaa6b --- /dev/null +++ b/get_version.bat @@ -0,0 +1,3 @@ +set ASEPRITE_VERSION=v1.3.5 + +echo %ASEPRITE_VERSION% \ No newline at end of file