From 9321a196ea4669ffc2b37c04f5edea02eb24b088 Mon Sep 17 00:00:00 2001 From: matyalatte Date: Sun, 5 Jan 2025 14:36:18 +0900 Subject: [PATCH] upload source files with subprojects to the release page --- .github/workflows/build_all.yml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.github/workflows/build_all.yml b/.github/workflows/build_all.yml index e560082..0e7db1f 100644 --- a/.github/workflows/build_all.yml +++ b/.github/workflows/build_all.yml @@ -190,3 +190,38 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | gh release upload ${{ needs.setup.outputs.tag }} archive/${{ env.TOOL_NAME }}-${{ needs.setup.outputs.tag }}-${{ runner.os }}-${{ matrix.arch }}.tar.xz + + # Upload source files with subprojects + upload-source: + name: upload-source + strategy: + fail-fast: false + + runs-on: ubuntu-latest + + needs: setup + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Install packages + run: | + sudo apt-get update + sudo apt-get -y install libgtk-3-dev + pip3 install meson ninja + + - name: Archive source files with subprojects + run: | + meson setup build + cd build + meson dist --include-subprojects --no-tests --allow-dirty + cd meson-dist + mv ${{ env.TOOL_NAME }}-undefined.tar.xz ${{ env.TOOL_NAME }}-${{ needs.setup.outputs.tag }}_source-with-subprojects.tar.xz + + - name: Upload Release Asset + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release upload ${{ needs.setup.outputs.tag }} build/meson-dist/${{ env.TOOL_NAME }}-${{ needs.setup.outputs.tag }}_source-with-subprojects.tar.xz