Compare commits
4 Commits
67ff7bd39b
..
main
| Author | SHA1 | Date | |
|---|---|---|---|
| f0e4b0425c | |||
|
2d401dd67c
|
|||
| 1644a03a09 | |||
| 73b06d19fd |
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public class FileAlreadyExistsException(string path) : Exception($"{path} already exists..");
|
public class FileAlreadyExistsException(string path) : Exception($"{path} already exists..");
|
||||||
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public class FileDoesNotExistException(string path) : Exception($"{path} does not exist.");
|
public class FileDoesNotExistException(string path) : Exception($"{path} does not exist.");
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public interface IDirectoryInfo: IDirectoryOrFile
|
public interface IDirectoryInfo: IDirectoryOrFile
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public interface IDirectoryOrFile
|
public interface IDirectoryOrFile
|
||||||
{
|
{
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public interface IFileInfo : IDirectoryOrFile
|
public interface IFileInfo : IDirectoryOrFile
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public interface IStorageProvider
|
public interface IStorageProvider
|
||||||
{
|
{
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
namespace OpenHarbor.Abstractions;
|
namespace OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
public interface IWriteFileOptions
|
public interface IWriteFileOptions
|
||||||
{
|
{
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
using Microsoft.WindowsAzure.Storage.Blob;
|
using Microsoft.WindowsAzure.Storage.Blob;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.Azure.Blob;
|
namespace OpenHarbor.Storage.Azure.Blob;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using Microsoft.WindowsAzure.Storage.Blob;
|
using Microsoft.WindowsAzure.Storage.Blob;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.Azure.Blob;
|
namespace OpenHarbor.Storage.Azure.Blob;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using Microsoft.WindowsAzure.Storage;
|
using Microsoft.WindowsAzure.Storage;
|
||||||
using Microsoft.WindowsAzure.Storage.Blob;
|
using Microsoft.WindowsAzure.Storage.Blob;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.Azure.Blob;
|
namespace OpenHarbor.Storage.Azure.Blob;
|
||||||
|
|
||||||
|
|||||||
@@ -12,6 +12,6 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenHarbor.Abstractions\OpenHarbor.Abstractions.csproj" />
|
<ProjectReference Include="..\OpenHarbor.Storage.Abstractions\OpenHarbor.Storage.Abstractions.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -8,6 +8,6 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenHarbor.Abstractions\OpenHarbor.Abstractions.csproj" />
|
<ProjectReference Include="..\OpenHarbor.Storage.Abstractions\OpenHarbor.Storage.Abstractions.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.Physical;
|
namespace OpenHarbor.Storage.Physical;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.Physical;
|
namespace OpenHarbor.Storage.Physical;
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\OpenHarbor.Abstractions\OpenHarbor.Abstractions.csproj" />
|
<ProjectReference Include="..\OpenHarbor.Storage.Abstractions\OpenHarbor.Storage.Abstractions.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
using Amazon.S3.Model;
|
using Amazon.S3.Model;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.S3
|
namespace OpenHarbor.Storage.S3
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.S3
|
namespace OpenHarbor.Storage.S3
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ using System.Text.RegularExpressions;
|
|||||||
using Amazon.Runtime;
|
using Amazon.Runtime;
|
||||||
using Amazon.S3;
|
using Amazon.S3;
|
||||||
using Amazon.S3.Model;
|
using Amazon.S3.Model;
|
||||||
using OpenHarbor.Abstractions;
|
using OpenHarbor.Storage.Abstractions;
|
||||||
|
|
||||||
namespace OpenHarbor.Storage.S3;
|
namespace OpenHarbor.Storage.S3;
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ VisualStudioVersion = 16.0.30406.217
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Storage.Azure", "OpenHarbor.Storage.Azure\OpenHarbor.Storage.Azure.csproj", "{B937F389-07BE-4235-B2A8-7D1229B3D0FC}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Storage.Azure", "OpenHarbor.Storage.Azure\OpenHarbor.Storage.Azure.csproj", "{B937F389-07BE-4235-B2A8-7D1229B3D0FC}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Abstractions", "OpenHarbor.Abstractions\OpenHarbor.Abstractions.csproj", "{C9CBCC98-B38E-4949-AF7C-BD291E09A1F4}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Storage.Abstractions", "OpenHarbor.Storage.Abstractions\OpenHarbor.Storage.Abstractions.csproj", "{C9CBCC98-B38E-4949-AF7C-BD291E09A1F4}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Storage.Physical", "OpenHarbor.Storage.Physical\OpenHarbor.Storage.Physical.csproj", "{349E6B89-BEBB-4883-95C8-9E28F9FEF24C}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "OpenHarbor.Storage.Physical", "OpenHarbor.Storage.Physical\OpenHarbor.Storage.Physical.csproj", "{349E6B89-BEBB-4883-95C8-9E28F9FEF24C}"
|
||||||
EndProject
|
EndProject
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
|
> This project was originally initiated by [Powered Software Inc.](https://poweredsoft.com/) and was forked from the [PoweredSoft/Storage](https://github.com/PoweredSoft/Storage) Repository
|
||||||
|
|
||||||
# Storage
|
# Storage
|
||||||
|
|
||||||
Abstraction allowing you to use different storage options on the cloud or locally with the same interface.
|
Abstraction allowing you to use different storage options on the cloud or locally with the same interface.
|
||||||
@@ -10,7 +12,7 @@ Abstraction allowing you to use different storage options on the cloud or locall
|
|||||||
|
|
||||||
| Full Version | NuGet | NuGet Install |
|
| Full Version | NuGet | NuGet Install |
|
||||||
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -----------------------------------------------------: |
|
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -----------------------------------------------------: |
|
||||||
| PoweredSoft.Storage.Core | <a href="https://www.nuget.org/packages/PoweredSoft.Storage.Core/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Storage.Core/)</a> | ```PM> Install-Package PoweredSoft.Storage.Core``` |
|
| OpenHarbor.Storage.Abstractions | <a href="https://www.nuget.org/packages/OpenHarbor.Storage.Abstractions" target="_blank">[](https://www.nuget.org/packages/OpenHarbor.Storage.Abstractions)</a> | ```PM> Install-Package OpenHarbor.Storage.Abstractions``` |
|
||||||
| PoweredSoft.Storage.Azure | <a href="https://www.nuget.org/packages/PoweredSoft.Storage.Azure/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Storage.Azure/)</a> | ```PM> Install-Package PoweredSoft.Storage.Azure``` |
|
| OpenHarbor.Storage.Physical | <a href="https://www.nuget.org/packages/OpenHarbor.Storage.Physical" target="_blank">[](https://www.nuget.org/packages/OpenHarbor.Storage.Physical)</a> | ```PM> Install-Package OpenHarbor.Storage.Physical``` |
|
||||||
| PoweredSoft.Storage.S3 | <a href="https://www.nuget.org/packages/PoweredSoft.Storage.S3/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Storage.S3/)</a> | ```PM> Install-Package PoweredSoft.Storage.S3``` |
|
| OpenHarbor.Storage.Azure | <a href="https://www.nuget.org/packages/OpenHarbor.Storage.Azure" target="_blank">[](https://www.nuget.org/packages/OpenHarbor.Storage.Azure)</a> | ```PM> Install-Package OpenHarbor.Storage.S3``` |
|
||||||
| PoweredSoft.Storage.Physical | <a href="https://www.nuget.org/packages/PoweredSoft.Storage.Physical/" target="_blank">[](https://www.nuget.org/packages/PoweredSoft.Storage.Physical/)</a> | ```PM> Install-Package PoweredSoft.Storage.Physical``` |
|
| OpenHarbor.Storage.S3 | <a href="https://www.nuget.org/packages/OpenHarbor.Storage.S3" target="_blank">[](https://www.nuget.org/packages/OpenHarbor.Storage.S3)</a> | ```PM> Install-Package OpenHarbor.Storage.S3 ``` |
|
||||||
@@ -0,0 +1,38 @@
|
|||||||
|
name: Publish NuGets
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
published:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Extract Release Version
|
||||||
|
shell: bash
|
||||||
|
run: echo "RELEASE_VERSION=${GITEA_TAG_NAME}" >> $GITEA_ENV
|
||||||
|
|
||||||
|
- name: Debug Release Version
|
||||||
|
run: echo "RELEASE_VERSION=${RELEASE_VERSION}"
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v3
|
||||||
|
with:
|
||||||
|
dotnet-version: 8.x
|
||||||
|
|
||||||
|
- name: Restore dependencies
|
||||||
|
run: dotnet restore
|
||||||
|
|
||||||
|
- name: Build and Pack NuGet Package
|
||||||
|
run: dotnet pack -c Release -o ./artifacts -p:Version=${RELEASE_VERSION}
|
||||||
|
|
||||||
|
- name: Publish to NuGet.org
|
||||||
|
env:
|
||||||
|
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
|
||||||
|
run: |
|
||||||
|
dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_API_KEY}
|
||||||
Reference in New Issue
Block a user