Skip to content

[*] CI

[*] CI #15

Workflow file for this run

name: Release
on:
push:
branches: [release-*]
jobs:
Release:
runs-on: ubuntu-latest
if: "!contains( github.event.head_commit.message, 'RobotBuild' )"
steps:
- uses: actions/[email protected]
with:
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.1.0 # Optional fallback tag to use when no tag can be found
- name: 'Get next minor version'
id: semvers
uses: "WyriHaximus/github-action-next-semvers@v1"
with:
version: ${{ steps.previoustag.outputs.tag }}
- run: 'sed -i "s/ \"version\":.*/ \"version\": \"${{ steps.semvers.outputs.patch }}\",/" package.json'
- run: 'sed -i "s/download\\/.*\\/epam-timebase-datasource.zip/download\\/${{ steps.semvers.outputs.patch }}\\/epam-timebase-datasource.zip/" README.md'
- uses: EndBug/add-and-commit@v9
with:
add: 'package.json README.md'
default_author: github_actions
message: 'RobotBuild ${{ steps.semvers.outputs.patch }}'
tag: ${{ steps.semvers.outputs.patch }}'
- uses: actions/setup-node@v2
with:
node-version: '20'
cache: 'yarn'
- run: yarn install
- run: yarn build
# - run: yarn sign
# env:
# GRAFANA_API_KEY: ${{ secrets.GRAFANA_API_KEY }}
# GRAFANA_ROOT_URLS: ${{ secrets.GRAFANA_ROOT_URLS }}
- run: zip epam-timebase-datasource.zip dist/ -r
- run: md5sum epam-timebase-datasource.zip > epam-timebase-datasource.zip.md5
- uses: ncipollo/release-action@v1
with:
artifacts: "epam-timebase-datasource.zip,epam-timebase-datasource.zip.md5"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.semvers.outputs.patch }}