Skip to content

Commit

Permalink
Add GitHub Action to upload complete source tarball
Browse files Browse the repository at this point in the history
Signed-off-by: Klemens Nanni <[email protected]>
  • Loading branch information
klemensn committed Jul 13, 2023
1 parent 0448f7e commit 2629193
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release-tarball.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: upload-release-tarball

on: release

jobs:
upload-release-tarball:
name: Upload complete source code including submodules
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- run: |
TAG="${GITHUB_REF#refs/tags/}"
RELEASE_TARBALL="web-eid-app-${TAG}.tar.gz"
git archive --format=tar --output="${RELEASE_TARBALL}" "${TAG}" --
echo "RELEASE_TARBALL='${RELEASE_TARBALL}'" >> "${GITHUB_ENV}"
- uses: softprops/action-gh-release@v1
with:
files: ${{env.RELEASE_TARBALL}}

0 comments on commit 2629193

Please sign in to comment.