-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Run autoconf for CI archives * Cleanup CI file, dont use git-archive-all * Fix a typo * Run autoreconf * Remove old .cvsignore file * Remove old travis CI file * Remove more .cvsignore files
- Loading branch information
Showing
15 changed files
with
40 additions
and
164 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,53 @@ | ||
name: Release tarball archive | ||
name: Source Code tarball | ||
|
||
on: | ||
push: | ||
tags: | ||
- '[0-9]*' | ||
|
||
jobs: | ||
archive_source_code: | ||
if: startsWith(github.ref, 'refs/tags/') | ||
name: Source Code Tarball | ||
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: Dependencies setup | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install python-pip | ||
sudo pip install git-archive-all | ||
- name: Archive source code | ||
shell: bash | ||
run: | | ||
cd "${GITHUB_WORKSPACE}" | ||
git-archive-all --prefix="${ARCHIVE_BASENAME}/" -9 "${{runner.workspace}}/${ARCHIVE_BASENAME}.tar.gz" | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Source code tarball | ||
path: ${{runner.workspace}}/${{env.ARCHIVE_BASENAME}}.tar.gz | ||
- 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 | ||
- archive_source_code | ||
steps: | ||
- uses: actions/download-artifact@v2 | ||
with: | ||
name: Source code tarball | ||
- uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
with: | ||
tag_name: ${{ github.ref_name }} | ||
name: Release ${{ github.ref_name }} | ||
draft: false | ||
prerelease: false | ||
files: | | ||
jack1-${{ github.ref_name }}.* | ||
- uses: actions/download-artifact@v2 | ||
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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.