aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-04-19 07:31:16 +0200
committerselsta <selsta@sent.at>2021-04-19 07:33:27 +0200
commit2dfb111a920ee13ae9aab631f204a0a86ea790f6 (patch)
tree61df3d66dcd43e6e19de246d275da48341bd0d30 /.github/workflows
parentMerge pull request #7653 (diff)
downloadmonero-2dfb111a920ee13ae9aab631f204a0a86ea790f6.tar.xz
workflows: upload source archive artifact
Co-authored-by: xiphon <xiphon@protonmail.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml17
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index aa6afbfbc..5a37403b8 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -154,3 +154,20 @@ jobs:
# ARCH="default" (not "native") ensures, that a different execution host can execute binaries compiled elsewhere.
# BUILD_SHARED_LIBS=ON speeds up the linkage part a bit, reduces size, and is the only place where the dynamic linkage is tested.
+ source-archive:
+ runs-on: ubuntu-20.04
+ steps:
+ - uses: actions/checkout@v1
+ with:
+ submodules: recursive
+ - name: archive
+ run: |
+ pip install git-archive-all
+ export VERSION="monero-$(git describe)"
+ export OUTPUT="$VERSION.tar"
+ echo "OUTPUT=$OUTPUT" >> $GITHUB_ENV
+ /home/runner/.local/bin/git-archive-all --prefix "$VERSION/" --force-submodules "$OUTPUT"
+ - uses: actions/upload-artifact@v2
+ with:
+ name: ${{ env.OUTPUT }}
+ path: /home/runner/work/monero/monero/${{ env.OUTPUT }}