Skip to content

Commit

Permalink
Create a release file containing submodules (#825)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjmayo authored May 31, 2024
1 parent 9cb3969 commit 5f4059a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/release_file.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Release File

on:
release:
types: [published]
workflow_dispatch:

jobs:
upload_archive:
name: Upload archive
runs-on: ubuntu-latest
steps:
- run: |
ref=${{ github.ref_name }}
echo "release_name=manifold-${ref#v}" >> $GITHUB_ENV
- uses: actions/checkout@v4
with:
path: ${{ env.release_name }}
submodules: recursive
- name: Build archive
run: >
tar --exclude=".git*" -cz ${{ env.release_name }} -f ${{ env.release_name }}.tar.gz
- name: Log checksum
run: >
sha256sum ${{ env.release_name }}.tar.gz
- name: Add file to release
run: |
cd ${{ env.release_name }} || exit 1
gh release upload ${{ github.ref_name }} ../${{ env.release_name }}.tar.gz
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 5f4059a

Please sign in to comment.