Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 0 additions & 30 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,43 +17,13 @@ name: Deploy

on:
workflow_dispatch:
inputs:
tag-name:
description: 'Tag for deployment (e.g., v0.5.2)'
required: true

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history for all tags and branches

- name: Validate format of received tag
uses: actions/github-script@v7
with:
script: |
const newTag = core.getInput('tag-name');
const regex = /^v[0-9]+\.[0-9]+\.[0-9]+$/;

if (!regex.test(newTag)) {
core.setFailed('Tag does not match the required format "v[0-9]+.[0-9]+.[0-9]+". Valid example: v0.5.2');
return;
}
tag-name: ${{ github.event.inputs.tag-name }}

- name: Define semantic version number
id: semantic_version
run: |
TAG_NAME="${{ github.event.inputs.tag-name }}"
VERSION=${TAG_NAME#v}
echo "VERSION=${VERSION}" >> "${GITHUB_ENV}"

- name: Checkout to tag
run: |
git checkout ${{ github.event.inputs.tag-name }}

- name: Set up JDK 1.8
uses: actions/setup-java@v1
Expand Down
Loading