Skip to content

Release

Release #32

Workflow file for this run

name: Release
on:
release:
types:
- released
tags:
- v4.*
workflow_dispatch:
inputs:
tag:
description: 'Tag version'
required: true
options:
- v4
jobs:
configure:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
tag: ${{ steps.ids.outputs.tag }}
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup GIT
uses: frankdejonge/use-github-token@1.0.1
with:
authentication: '${{ secrets.COMPOSER_USERNAME }}:${{ secrets.COMPOSER_TOKEN }}'
user_name: 'Andrey Helldar'
user_email: 'helldar@dragon-code.pro'
- name: Set matrix data
id: set-matrix
run: echo "matrix=$(jq -c . < ./split.json)" >> $GITHUB_OUTPUT
- name: Get version
id: ids
run: |
TAG=${{ github.event.release.tag_name || github.event.inputs.tag }}
echo "tag=${TAG##*v}" >> "$GITHUB_OUTPUT"
deploy:
runs-on: ubuntu-latest
needs: configure
strategy:
matrix: ${{ fromJson(needs.configure.outputs.matrix) }}
# name: ${{ matrix.name }}
steps:
- name: Show version
run: echo "${{ needs.configure.outputs.tag }}"
- name: Components release
run: echo "${{ matrix.name }}"
# run: ./bin/release.sh ${{ steps.ids.outputs.tag }}
- name: Info
run: echo "${{ toJson(matrix) }}"
# run: ./bin/release.sh ${{ steps.ids.outputs.tag }}