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