| @@ -1,11 +1,8 @@ | |||||
| name: Release tarball archive | name: Release tarball archive | ||||
| on: | on: | ||||
| push: | push: | ||||
| tags: | |||||
| - '[0-9]*' | |||||
| jobs: | jobs: | ||||
| archive_source_code: | archive_source_code: | ||||
| if: startsWith(github.ref, 'refs/tags/') | |||||
| name: Source Code Tarball | name: Source Code Tarball | ||||
| runs-on: ubuntu-18.04 | runs-on: ubuntu-18.04 | ||||
| env: | env: | ||||
| @@ -17,13 +14,15 @@ jobs: | |||||
| submodules: recursive | submodules: recursive | ||||
| - name: Dependencies setup | - name: Dependencies setup | ||||
| run: | | run: | | ||||
| sudo apt-get update | |||||
| sudo apt-get install python-pip | |||||
| sudo apt-get update -qq | |||||
| sudo apt-get install -yqq python-pip | |||||
| sudo pip install git-archive-all | sudo pip install git-archive-all | ||||
| - name: Archive source code | - name: Archive source code | ||||
| shell: bash | shell: bash | ||||
| run: | | run: | | ||||
| cd "${GITHUB_WORKSPACE}" | cd "${GITHUB_WORKSPACE}" | ||||
| ./autogen.sh | |||||
| rm -rf autom4te.cache | |||||
| git-archive-all --prefix="${ARCHIVE_BASENAME}/" -9 "${{runner.workspace}}/${ARCHIVE_BASENAME}.tar.gz" | git-archive-all --prefix="${ARCHIVE_BASENAME}/" -9 "${{runner.workspace}}/${ARCHIVE_BASENAME}.tar.gz" | ||||
| - uses: actions/upload-artifact@v2 | - uses: actions/upload-artifact@v2 | ||||
| with: | with: | ||||