Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Source Code tarball | |
on: | |
push: | |
jobs: | |
archive_source_code: | |
name: Create source code tarball | |
runs-on: ubuntu-18.04 | |
env: | |
ARCHIVE_BASENAME: jack1-${{ github.ref_name }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- name: Archive source code | |
shell: bash | |
run: | | |
./autogen.sh | |
autoreconf -fiv | |
rm -rf autom4te.cache | |
rm -f config.h.in~ | |
tar -c -z \ | |
--exclude=".git*" \ | |
--transform="s,^\.,${ARCHIVE_BASENAME}," \ | |
-f ~/${ARCHIVE_BASENAME}.tar.gz \ | |
. | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: Source code tarball | |
path: ~/${{env.ARCHIVE_BASENAME}}.tar.gz | |
deploy: | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-18.04 | |
env: | |
ARCHIVE_BASENAME: jack1-${{ github.ref_name }} | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
needs: | |
- archive_source_code | |
steps: | |
- uses: actions/[email protected] | |
with: | |
name: Source code tarball | |
- uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ github.ref_name }} | |
name: Release ${{ github.ref_name }} | |
draft: false | |
prerelease: false | |
files: | | |
${{ env.ARCHIVE_BASENAME }}.tar.gz |