Skip to content

Commit

Permalink
TASK SIO-3033 release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Korsakov committed Mar 23, 2021
1 parent f952576 commit e37aa97
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e37aa97

Please sign in to comment.