From 9f8f492c38f2f8bb127859cc915db92351ddb15d Mon Sep 17 00:00:00 2001 From: Chihiro Adachi <8196725+chihiro-adachi@users.noreply.github.com> Date: Fri, 13 Aug 2021 09:27:17 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=91=E3=83=83=E3=82=B1=E3=83=BC=E3=82=B8?= =?UTF-8?q?=E3=83=B3=E3=82=B0=E7=94=A8=E3=81=AEworkflow=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a19786e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,28 @@ +name: Packaging for EC-CUBE Plugin +on: + release: + types: [ published ] +jobs: + deploy: + name: Build + runs-on: ubuntu-18.04 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Packaging + working-directory: ../ + run: | + rm -rf $GITHUB_WORKSPACE/.github + find $GITHUB_WORKSPACE -name "dummy" -delete + find $GITHUB_WORKSPACE -name ".git*" -and ! -name ".gitkeep" -print0 | xargs -0 rm -rf + chmod -R o+w $GITHUB_WORKSPACE + cd $GITHUB_WORKSPACE + tar cvzf ../${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz ./* + - name: Upload binaries to release of TGZ + uses: svenstaro/upload-release-action@v1-release + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ${{ runner.workspace }}/${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz + asset_name: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}.tar.gz + tag: ${{ github.ref }} + overwrite: true