diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:52:50 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-05-12 16:52:50 -0500 |
commit | c91bd17f90bcd21f9a9c2c9f3861a458a79a6fca (patch) | |
tree | 82fa25d7d9768e0976a8dceb677d25b9adee4b3b | |
parent | Merge pull request #7685 (diff) | |
parent | workflows: upload source archive artifact (diff) | |
download | monero-c91bd17f90bcd21f9a9c2c9f3861a458a79a6fca.tar.xz |
Merge pull request #7670
2dfb111 workflows: upload source archive artifact (selsta)
-rw-r--r-- | .github/workflows/build.yml | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5c52eb9c6..36eab5027 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 }} |