Compare commits

..

No commits in common. "ab1cfe9243e64a3f790c6141a9c462dcf9d29798" and "8a0f1ba704c12328ef68a55a08dd37a63d198984" have entirely different histories.

7 changed files with 15 additions and 40 deletions

View File

@ -8,18 +8,17 @@ on:
jobs:
build:
runs-on: ubuntu-latest
container:
image: git.mixedup.dev/quik/docker-cross-compiler
env:
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
volumes:
- ${{ gitea.workspace }}:/home/quik/src
env:
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
steps:
- name: Update Package Repository.
run: apt update -y
- name: Gather dependencies.
run: apt install -y docker.io docker-compose
- name: Check repository out.
uses: actions/checkout@v3
with:
submodules: recursive
- name: Run Build Script
run: "./build_native.sh"
- name: Publish Package
run: "./publish.sh"
run: docker-compose run build
working-directory: ${{ gitea.workspace }}
- name: Upload NuGet Package
run: "bash ${{ gitea.workspace }}/publish.sh"

2
.gitignore vendored
View File

@ -2,5 +2,3 @@
**/obj
**/out
**/runtimes
**/.vs*
**/.atom

@ -1 +1 @@
Subproject commit d9c98b5cdc37b2ba1855c8fa9ce0fac8266b0f89
Subproject commit ebfc8a694615a8a6c9d35652279a9748ff43db3d

View File

@ -1,11 +0,0 @@
#!/bin/bash
cd $(dirname "$0")
if [ -z "$QUIK_API_KEY" ]
then
echo "Please define QUIK_API_KEY"
exit 1
fi
pwd
docker-compose run build && docker-compose run publish

2
build_native.sh Executable file → Normal file
View File

@ -1,4 +1,4 @@
#!/bin/bash
cd $(dirname "$0")
./Quik.Common/sh/quik_build_native.sh .
Quik.Common/sh/quik_build_native.sh .
dotnet build

View File

@ -5,12 +5,4 @@ services:
image: git.mixedup.dev/quik/docker-cross-compiler
command: "/home/quik/src/build_native.sh"
volumes:
- .:/home/quik/src
publish:
image: git.mixedup.dev/quik/docker-cross-compiler
command: "/home/quik/src/publish.sh"
environment:
QUIK_API_KEY: ${QUIK_API_KEY}
volumes:
- .:/home/quik/src
- .:/home/quik/src

7
publish.sh Executable file → Normal file
View File

@ -7,8 +7,5 @@ then
exit 1
fi
dotnet nuget add source \
-n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \
--store-password-in-clear-text \
https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
dotnet nuget push -s QUIK bin/*/*.nupkg
dotnet nuget add source -n QUIK -u themixedupstuff -p "$QUIK_API_KEY" https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
dotnet nuget push -s QUIK