Compare commits

...

2 Commits

Author SHA1 Message Date
ed462e05e1 Remove Quik.Common submodule. 2024-06-20 11:30:17 +03:00
8d6aa89c5e Update workflow and add publish script. 2024-06-20 11:29:45 +03:00
4 changed files with 36 additions and 10 deletions

@ -1,19 +1,22 @@
name: Build
run-name: Build Quik.FreeType on Docker.
run-name: Build ReFuel.FreeType on Docker.
on:
workflow_dispatch:
push:
branches: stable
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
container:
image: git.mixedup.dev/quik/docker-cross-compiler
image: git.mixedup.dev/refuel/docker-cross-compiler
env:
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
REFUEL_API_KEY: "${{secrets.REFUEL_API_KEY}}"
NUGET_USER_NAME: "${{vars.NUGET_USER_NAME}}"
NUGET_INDEX: "${{vars.NUGET_INDEX}}"
volumes:
- ${{ gitea.workspace }}:/home/quik/src
- ${{ gitea.workspace }}:/home/refuel/src
steps:
- name: Check repository out.
uses: actions/checkout@v3
@ -22,4 +25,4 @@ jobs:
- name: Run Build Script
run: "./build_native.sh"
- name: Publish Package
run: "Quik.Common/sh/publish.sh ."
run: "./publish.sh ."

3
.gitmodules vendored

@ -1,6 +1,3 @@
[submodule "freetype"]
path = freetype
url = https://git.mixedup.dev/QUIK/freetype.git
[submodule "Quik.Common"]
path = Quik.Common
url = https://git.mixedup.dev/QUIK/Quik.Common.git

@ -1 +0,0 @@
Subproject commit fdfac9d95134fb5637bb2a9ec98ee11fe188230e

27
publish.sh Normal file

@ -0,0 +1,27 @@
#!/bin/bash
cd $(dirname "$0")
if [ -z "$REFUEL_API_KEY" ]
then
echo "Please define REFUEL_API_KEY"
exit 1
fi
if [ -z "$NUGET_USER_NAME" ]
then
echo "Please define NUGET_USER_NAME"
exit 1
fi
if [ -z "$NUGET_INDEX" ]
then
echo "Please define NUGET_INDEX"
exit 1
fi
dotnet nuget add source \
-n ReFuel -u "$NUGET_USER_NAME" -p "$REFUEL_API_KEY" \
--store-password-in-clear-text \
"$NUGET_INDEX"
dotnet nuget push -s ReFuel bin/*/*.nupkg