From ab85b2dde72e1ad604e9985d8d3d2814b27c7356 Mon Sep 17 00:00:00 2001 From: Chihiro Adachi <8196725+chihiro-adachi@users.noreply.github.com> Date: Tue, 12 Jan 2021 16:47:34 +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=AEactions=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/main.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..a19786e --- /dev/null +++ b/.github/workflows/main.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