Parse version from tag
Test Workflow / Lint and test library (pull_request) Successful in 7m41s Details

This commit is contained in:
Gleb Koval 2023-12-02 00:47:01 +00:00
parent c9a19c929d
commit 11e0b03904
Signed by: cyclane
GPG Key ID: 15E168A8B332382C
1 changed files with 8 additions and 4 deletions

View File

@ -1,8 +1,5 @@
name: Publish Workflow name: Publish Workflow
on: on:
pull_request: # testing for now
branches:
- main
push: push:
tags: tags:
- v* - v*
@ -28,9 +25,16 @@ jobs:
- name: Run checks - name: Run checks
run: ./gradlew check run: ./gradlew check
- name: Parse parameters
id: parse
run: |
export VERSION="$(echo ${{ github.ref_name }} | cut -c2-)"
echo "Parsed version: '$VERSION'"
echo "tinyvm_version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Publish to Gitea package repository - name: Publish to Gitea package repository
env: env:
TINYVM_VERSION: "0.0.0" # testing for now TINYVM_VERSION: ${{ steps.parse.outputs.tinyvm_version }}
GITEA_USERNAME: ${{ github.repository_owner }} GITEA_USERNAME: ${{ github.repository_owner }}
GITEA_TOKEN: ${{ secrets.deploy_token }} GITEA_TOKEN: ${{ secrets.deploy_token }}
run: ./gradlew publishAllPublicationsToGiteaRepository run: ./gradlew publishAllPublicationsToGiteaRepository