Parse version from tag
Test Workflow / Lint and test library (pull_request) Successful in 7m41s
Details
Test Workflow / Lint and test library (pull_request) Successful in 7m41s
Details
This commit is contained in:
parent
c9a19c929d
commit
11e0b03904
|
@ -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
|
Reference in New Issue