Skip to content

Commit

Permalink
upload source files with subprojects to the release page (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
matyalatte authored Jan 8, 2025
1 parent e85bd04 commit 01b4da9
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 01b4da9

Please sign in to comment.