diff options
author | Ryo Nakamura <upa@haeena.net> | 2022-11-26 00:13:49 +0900 |
---|---|---|
committer | Ryo Nakamura <upa@haeena.net> | 2022-11-26 00:13:49 +0900 |
commit | 612c3c41d4d9836984f9c4aa56093c1ac9143d2d (patch) | |
tree | c2ca9619b28e559e7d55374f707e7e78838cec1a /.github | |
parent | 876a60382cf13f6372cc4aa5a6e3d6b9d41ec53f (diff) |
github: add source-release job
Default source tar balls in github releases do not include
submodules. source-release job uploads mscp tar ball with patched
libssh.
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/release.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 34f3ece..f8be98e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -48,3 +48,30 @@ jobs: ${{github.workspace}}/build/mscp_${{env.VERSION}}-ubuntu-22.04-x86_64.deb ${{github.workspace}}/build/mscp_${{env.VERSION}}-centos-8-x86_64.rpm ${{github.workspace}}/build/mscp_${{env.VERSION}}-rocky-8.6-x86_64.rpm + + source-release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - name: patch to libssh + run: patch -d libssh -p1 < patch/libssh-0.10.4.patch + + - name: Set variables + run: | + VER=$(cat VERSION) + echo "VERSION=$VER" >> $GITHUB_ENV + + - name: archive + run: | + cd .. + cp -r mscp mscp-${{env.VERSION}} + tar cvf mscp-${{env.VERSION}}.tar.gz --exclude-vcs mscp-${{env.VERSION}} + + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + ${{github.workspace}}/../mscp-${{env.VERSION}}.tar.gz |