This commit is contained in:
1 parent
1555a0fbb6
commit
a642788a07
3 files changed
+41
-14
No files matched your search
@@ -35,13 +35,39 @@ jobs:
|
||||
libpango-1.0-0 \
|
||||
libcairo2 \
|
||||
libasound2 \
|
||||
libatspi2.0-0
|
||||
libatspi2.0-0 \
|
||||
rclone
|
||||
- name: Install .NET Tools
|
||||
run: dotnet tool update -g docfx
|
||||
- name: Add NuGet Sources
|
||||
run: |
|
||||
dotnet nuget add source -n ReFuel -u ${{vars.NUGET_USER_NAME}} -p ${{secrets.REFUEL_API_KEY}} --store-password-in-clear-text ${{vars.NUGET_INDEX}}
|
||||
dotnet nuget add source -n CallumDev -u ${{ vars.GH_USERNAME }} -p ${{ secrets.GH_API_KEY }} --store-password-in-clear-text https://nuget.pkg.github.com/CallumDev/index.json
|
||||
|
||||
- name: Configure WebDAV
|
||||
env:
|
||||
WEBDAV_USERNAME: ${{ vars.WEBDAV_USERNAME }}
|
||||
WEBDAV_PASSWORD: ${{ secrets.WEBDAV_PASSWORD }}
|
||||
WEBDAV_URL: ${{ vars.WEBDAV_URL }}
|
||||
run: |
|
||||
rclone config create webdav webdav \
|
||||
url "$WEBDAV_URL" \
|
||||
vendor other \
|
||||
user "$WEBDAV_USERNAME" \
|
||||
pass "$(rclone obscure "$WEBDAV_PASSWORD")"
|
||||
|
||||
- name: Pull Certs
|
||||
env:
|
||||
CLIENT_CERT: ${{ vars.WEBDAV_CLIENT_CERT }}
|
||||
CLIENT_KEY: ${{ secrets.WEBDAV_CLIENT_KEY }}
|
||||
CA_CERT: ${{ vars.WEBDAV_CA_CERT }}
|
||||
run: |
|
||||
mkdir -p "$RUNNER_TEMP/certs"
|
||||
printf '%s' "$CLIENT_CERT" > "$RUNNER_TEMP/certs/client.crt"
|
||||
printf '%s' "$CLIENT_KEY" > "$RUNNER_TEMP/certs/client.key"
|
||||
printf '%s' "$CA_CERT" > "$RUNNER_TEMP/certs/ca.crt"
|
||||
chmod 600 "$RUNNER_TEMP/certs/"*
|
||||
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -49,17 +75,15 @@ jobs:
|
||||
token: ${{secrets.REFUEL_API_KEY}}
|
||||
- name: Compile Web Pages
|
||||
run: $HOME/.dotnet/tools/docfx
|
||||
- name: SFTP Deploy
|
||||
uses: wlixcc/SFTP-Deploy-Action@v1.2.5
|
||||
with:
|
||||
username: '${{ vars.SSH_USER }}'
|
||||
server: '${{ vars.SSH_SERVER }}'
|
||||
port: '${{ vars.SSH_PORT }}'
|
||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
local_path: './_site/*'
|
||||
remote_path: '${{ vars.DESTINATION }}'
|
||||
sftpArgs: -o ConnectTimeout=10
|
||||
rsyncArgs: --exclude=.*
|
||||
- name: WebDAW Deploy
|
||||
env:
|
||||
DESTINATION: ${{ vars.WEBDAV_PATH }}
|
||||
run: |
|
||||
rclone sync './out/refuel.mixedup.dev/' "webdav:$DESTINATION" \
|
||||
--client-cert "$RUNNER_TEMP/certs/client.crt" \
|
||||
--client-key "$RUNNER_TEMP/certs/client.key" \
|
||||
--verbose
|
||||
|
||||
- name: Clear Secrets
|
||||
run: |
|
||||
dotnet nuget remove source ReFuel
|
||||
|
||||
@@ -1,12 +1,16 @@
|
||||
[submodule "src/ReFuel.StbImage"]
|
||||
path = src/ReFuel.StbImage
|
||||
url = https://git.mixedup.dev/ReFuel/ReFuel.StbImage.git
|
||||
branch = stable
|
||||
[submodule "src/ReMime"]
|
||||
path = src/ReMime
|
||||
url = https://git.mixedup.dev/ReFuel/ReMime.git
|
||||
branch = master
|
||||
[submodule "src/Dashboard"]
|
||||
path = src/Dashboard
|
||||
url = https://git.mixedup.dev/ReFuel/Dashboard.git
|
||||
branch = dashboard2
|
||||
[submodule "src/ReFuel"]
|
||||
path = src/ReFuel
|
||||
url = https://git.mixedup.dev/ReFuel/ReFuel.git
|
||||
branch = work-dashboard2
|
||||
@@ -77,8 +77,7 @@ image.WriteJpg(stream, quality);
|
||||
| Option | Description |
|
||||
|--------|-------------|
|
||||
| `bool StbImage.FlipVerticallyOnLoad { set; }` | Flips the image vertically after loading. Practical for uses where a right handed coordinate system is used (e.g. OpenGL) |
|
||||
| `bool StbImage.FlipVerticallyOnSave { set; }` | Similar to FlipVerticallyOnLoad, it will flip
|
||||
the image vertically when writing. |
|
||||
| `bool StbImage.FlipVerticallyOnSave { set; }` | Similar to FlipVerticallyOnLoad, it will flip the image vertically when writing. |
|
||||
| `bool StbImage.UnpremultiplyOnLoad { set; }` | Applies to Apple iPhone PNG images, where the image is sometimes encoded with premultiplied alpha. Reverses this premultiplication. |
|
||||
| `int StbImage.WriteForcePngFilter { get; set; }` | Forces a filter when writing PNG images. Must be -1 for auto, or 0 through 5, higher is more. See STBI documentation. |
|
||||
| `int WritePngCompressionLevel { get; set; }` | Changes the PNG deflate compression level. Higher is more. Higher values take longer. 8 by default. |
|
||||
|
||||
Reference in new issue
Block a user