Skip to content

Commit

Permalink
CI: Generate source tarball with submodules.
Browse files Browse the repository at this point in the history
Suggested-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
  • Loading branch information
heiher committed Dec 3, 2022
1 parent f8bdc53 commit 3c3aa44
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ jobs:
tar xf ${{ env.MUSL_SDK_RISCV_32 }}
wget -q ${{ env.MUSL_SDK_URL }}/${{ env.MUSL_SDK_RISCV_64 }}
tar xf ${{ env.MUSL_SDK_RISCV_64 }}
- name: Gen Source
run: |
mkdir -p natmap-${{ github.ref_name }}
git ls-files --recurse-submodules | tar c -O -T- | tar x -C natmap-${{ github.ref_name }}
tar caf natmap-${{ github.ref_name }}.tar.gz natmap-${{ github.ref_name }}
- name: Build Linux
run: |
# x86_32
Expand Down Expand Up @@ -116,6 +121,15 @@ jobs:
release_name: ${{ github.ref }}
draft: false
prerelease: false
- name: Upload source
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./natmap-${{ github.ref_name }}.tar.gz
asset_name: natmap-${{ github.ref_name }}.tar.gz
asset_content_type: application/octet-stream
- name: Upload linux-x86_32
uses: actions/upload-release-asset@v1
env:
Expand Down

0 comments on commit 3c3aa44

Please sign in to comment.