From 2629193cdb97014c83162987009707e7e7084a30 Mon Sep 17 00:00:00 2001 From: Klemens Nanni Date: Thu, 13 Jul 2023 20:27:23 +0300 Subject: [PATCH] Add GitHub Action to upload complete source tarball Signed-off-by: Klemens Nanni --- .github/workflows/release-tarball.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release-tarball.yml diff --git a/.github/workflows/release-tarball.yml b/.github/workflows/release-tarball.yml new file mode 100644 index 00000000..23e49df8 --- /dev/null +++ b/.github/workflows/release-tarball.yml @@ -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}}