Initial publish #2

Merged
cyclane merged 5 commits from package-release into main 2023-12-02 01:00:04 +00:00
1 changed files with 8 additions and 4 deletions
Showing only changes of commit 11e0b03904 - Show all commits

View File

@ -1,8 +1,5 @@
name: Publish Workflow
on:
pull_request: # testing for now
branches:
- main
push:
tags:
- v*
@ -28,9 +25,16 @@ jobs:
- name: Run checks
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
env:
TINYVM_VERSION: "0.0.0" # testing for now
TINYVM_VERSION: ${{ steps.parse.outputs.tinyvm_version }}
GITEA_USERNAME: ${{ github.repository_owner }}
GITEA_TOKEN: ${{ secrets.deploy_token }}
run: ./gradlew publishAllPublicationsToGiteaRepository