Skip to content

Commit

Permalink
chore: report v1 create tag workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitFicus committed Apr 15, 2024
1 parent 47858a9 commit 7b8941d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/create-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Create tag
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'release version (1.0.0, v1.2.0, etc)'
required: true

jobs:
create-tag:
name: Create tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}"
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version-file: ".java-version"
- name: Workflow can be run only on master
run: test "${{ github.ref }}" = "refs/heads/master" || (echo "Release can be created only from master (${{ github.ref }} not supported)." && false)
- name: Set release version (remove "v" of "vX.Y.Z")
run: |
export VERSION=$(echo ${{ github.event.inputs.releaseVersion }} | sed 's/v//')
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
- name: Build & create tag
run: |
git config --local user.email "[email protected]"
git config --local user.name "izanami-github-actions"
sbt "release with-defaults release-version ${{ env.RELEASE_VERSION }}"

0 comments on commit 7b8941d

Please sign in to comment.