From e37aa975d4424c5a46360325a9dd1d9f1be51d3e Mon Sep 17 00:00:00 2001 From: Mikhail Korsakov Date: Mon, 22 Mar 2021 19:20:38 +0700 Subject: [PATCH] TASK SIO-3033 release workflow --- .github/workflows/tagged-release.yml | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/tagged-release.yml diff --git a/.github/workflows/tagged-release.yml b/.github/workflows/tagged-release.yml new file mode 100644 index 0000000..3d770b7 --- /dev/null +++ b/.github/workflows/tagged-release.yml @@ -0,0 +1,35 @@ +name: tagged-release + +on: + push: + tags: + - "v*" + +jobs: + tagged-release: + name: Tagged Release + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Install JS dependencies + run: | + npm install + - name: Install PHP dependencies + uses: php-actions/composer@v5 + with: + dev: no + args: --profile --ignore-platform-reqs + - name: Get the version + id: get_version + run: echo ::set-output name=SOURCE_TAG::${GITHUB_REF#refs/tags/} + - name: Create release file + run: | + rm -rf .git + zip -r solusiovps-${{ steps.get_version.outputs.SOURCE_TAG }}.zip . + - uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + prerelease: false + files: | + solusiovps-${{ steps.get_version.outputs.SOURCE_TAG }}.zip