Fix build scripts.
This commit is contained in:
parent
112c1065b0
commit
e7c90af3ed
@ -1,19 +1,21 @@
|
|||||||
name: Build
|
name: Build
|
||||||
run-name: Building docker container.
|
run-name: Building with docker container.
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
tags:
|
||||||
branches: stable
|
- *
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: git.mixedup.dev/quik/docker-cross-compiler
|
image: git.mixedup.dev/refuel/docker-cross-compiler
|
||||||
env:
|
env:
|
||||||
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
|
QUIK_API_KEY: "${{secrets.REFUEL_API_KEY}}"
|
||||||
|
NUGET_USER_NAME: "${{vars.NUGET_USER_NAME}}"
|
||||||
|
NUGET_INDEX: "${{vars.NUGET_INDEX}}"
|
||||||
volumes:
|
volumes:
|
||||||
- ${{ gitea.workspace }}:/home/quik/src
|
- ${{ gitea.workspace }}:/home/refuel/src
|
||||||
steps:
|
steps:
|
||||||
- name: Check repository out.
|
- name: Check repository out.
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
23
publish.sh
23
publish.sh
@ -1,14 +1,27 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd $(dirname "$0")
|
cd $(dirname "$0")
|
||||||
if [ -z "$QUIK_API_KEY" ]
|
|
||||||
|
if [ -z "$REFUEL_API_KEY" ]
|
||||||
then
|
then
|
||||||
echo "Please define QUIK_API_KEY"
|
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
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dotnet nuget add source \
|
dotnet nuget add source \
|
||||||
-n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \
|
-n ReFuel -u "$NUGET_USER_NAME" -p "$REFUEL_API_KEY" \
|
||||||
--store-password-in-clear-text \
|
--store-password-in-clear-text \
|
||||||
https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
|
"$NUGET_INDEX"
|
||||||
dotnet nuget push -s QUIK bin/*/*.nupkg
|
dotnet nuget push -s ReFeul bin/*/*.nupkg
|
||||||
|
Loading…
Reference in New Issue
Block a user