Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a0124a9313 | ||
|
|
2dcebb96cb | ||
|
|
90f5d27a16 | ||
|
|
4661627957 | ||
|
|
5a07f2f953 | ||
|
|
f77b27e9ee | ||
|
|
4ce9902947 | ||
|
|
7b79c80b35 | ||
|
|
9de0146cbb | ||
|
|
6da9c9c8da |
@@ -4,8 +4,6 @@ on: [push]
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
env:
|
|
||||||
DOTNET_INSTALL_DIR: '.\.dotnet'
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
dotnet-version: [ '8.0.x' ]
|
dotnet-version: [ '8.0.x' ]
|
||||||
@@ -13,27 +11,10 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Setup dotnet
|
||||||
- name: Cache dotnet
|
|
||||||
id: cache-dotnet
|
|
||||||
uses: actions/cache@v3
|
|
||||||
with:
|
|
||||||
path: ${{ env.DOTNET_INSTALL_DIR }}
|
|
||||||
key: ${{ runner.os }}-dotnet-${{ matrix.dotnet-version }}
|
|
||||||
restore-keys: ${{ runner.os }}-dotnet-${{ matrix.dotnet-version }}
|
|
||||||
|
|
||||||
- name: Install dotnet
|
|
||||||
if: ${{ steps.cache-dotnet.outputs.cache-hit != 'true' }}
|
|
||||||
uses: actions/setup-dotnet@v3
|
uses: actions/setup-dotnet@v3
|
||||||
with:
|
with:
|
||||||
dotnet-version: ${{ matrix.dotnet-version }}
|
dotnet-version: ${{ matrix.dotnet-version }}
|
||||||
|
|
||||||
# - name: Setup dotnet
|
|
||||||
# uses: actions/setup-dotnet@v3
|
|
||||||
# with:
|
|
||||||
# dotnet-version: ${{ matrix.dotnet-version }}
|
|
||||||
# cache: true
|
|
||||||
# cache-dependency-path: packages.lock.json
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: dotnet restore
|
run: dotnet restore
|
||||||
- name: Test with dotnet
|
- name: Test with dotnet
|
||||||
@@ -41,30 +22,19 @@ jobs:
|
|||||||
- name: Build the package
|
- name: Build the package
|
||||||
run: dotnet build
|
run: dotnet build
|
||||||
- name: Publish the package
|
- name: Publish the package
|
||||||
run: dotnet publish
|
run: dotnet publish -p:PublishSingleFile=true --self-contained false --runtime win-x64
|
||||||
- name: List files in the repository
|
- name: List all files
|
||||||
run: |
|
run: |
|
||||||
ls /workspace/pi-ux-ce/Simpsons_generator/bin/
|
find /workspace/pi-ux-ce/Simpsons_generator/bin
|
||||||
- name: List files in the repository
|
|
||||||
|
- name: Delete existing latest version
|
||||||
run: |
|
run: |
|
||||||
ls /workspace/pi-ux-ce/Simpsons_generator/bin/Debug/
|
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} -X DELETE \
|
||||||
- name: List files in the repository
|
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/Simpsons_generator/latest/Simpsons_generator.exe
|
||||||
|
|
||||||
|
- name: upload latest version
|
||||||
run: |
|
run: |
|
||||||
ls /workspace/pi-ux-ce/Simpsons_generator/bin/Debug/net8.0/
|
curl --user ${{ secrets.USERNAME_GITEA }}:${{ secrets.PASSWORD_GITEA }} \
|
||||||
- name: Commit changes
|
--upload-file /workspace/pi-ux-ce/Simpsons_generator/bin/Release/net8.0/win-x64/publish/Simpsons_generator.exe \
|
||||||
uses: EndBug/add-and-commit@v9
|
https://gitea.tryton.geeraert.eu/api/packages/pi-ux-ce/generic/Simpsons_generator/latest/Simpsons_generator.exe
|
||||||
with:
|
|
||||||
author_name: Pierre
|
|
||||||
author_email: pierre@geeraert.eu
|
|
||||||
message: 'automated push of build'
|
|
||||||
add: '/workspace/pi-ux-ce/Simpsons_generator/bin/Debug/net8.0/Simpsons_generator.exe'
|
|
||||||
- name: git push changes
|
|
||||||
uses: appleboy/git-push-action@v0.0.2
|
|
||||||
with:
|
|
||||||
author_email: pierre@geeraert.eu
|
|
||||||
author_name: Pierre
|
|
||||||
branch: main
|
|
||||||
commit: true
|
|
||||||
commit_message: "[skip ci] Updated changes by gitea bot"
|
|
||||||
remote: git@gitea.tryton.geeraert.eu:pi-ux-ce/Simpsons_generator.git
|
|
||||||
ssh_key: ${{ secrets.DEPLOY_KEY }}
|
|
||||||
|
|||||||
+2
-2
@@ -113,7 +113,7 @@ class Program
|
|||||||
|
|
||||||
|
|
||||||
int maximum_number_seasons = 35;
|
int maximum_number_seasons = 35;
|
||||||
string root_url = "https://www1.kisscartoon.online/episode/the-simpsons-season-";
|
string root_url = "https://kisscartoon.top/episode/the-simpsons-season-";
|
||||||
|
|
||||||
//random for the season
|
//random for the season
|
||||||
Random rnd = new Random();
|
Random rnd = new Random();
|
||||||
@@ -187,4 +187,4 @@ class Program
|
|||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import random
|
import random
|
||||||
|
|
||||||
simpsons_url = "https://www1.kisscartoon.online/episode/the-simpsons-season-";
|
simpsons_url = "https://kisscartoon.top/episode/the-simpsons-season-";
|
||||||
number_of_seasons = 35
|
number_of_seasons = 35
|
||||||
|
|
||||||
seasons_maximum_number = [13,22,24,22,22,25,25,25,25,23,22,21,22,22,22,21,22,22,20,21,23,22,22,22,22,22,22,22,21,23,22,22,22,22,18]
|
seasons_maximum_number = [13,22,24,22,22,25,25,25,25,23,22,21,22,22,22,21,22,22,20,21,23,22,22,22,22,22,22,22,21,23,22,22,22,22,18]
|
||||||
@@ -18,4 +18,4 @@ random_episode = random.randint(1, seasons_maximum_number[random_seasons-1])
|
|||||||
print("random episode: "+ str(random_episode))
|
print("random episode: "+ str(random_episode))
|
||||||
|
|
||||||
final_url = simpsons_url+str(random_seasons)+ "-episode-"+str(random_episode)
|
final_url = simpsons_url+str(random_seasons)+ "-episode-"+str(random_episode)
|
||||||
print(final_url)
|
print(final_url)
|
||||||
|
|||||||
Binary file not shown.
@@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.NET.ILLink.Tasks": "8.0.8"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-P8wR6MUWwYXIjPJuBaZgo5zlI/GWI6QEAo6NyVIbPefa9CCkohYu7dP2rD/mrqnjEqfRHyl+h9VZrDoGpELqYg==",
|
|
||||||
"path": "microsoft.net.illink.tasks/8.0.8",
|
|
||||||
"hashPath": "microsoft.net.illink.tasks.8.0.8.nupkg.sha512"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,34 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.NET.ILLink.Tasks": "8.0.8"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-P8wR6MUWwYXIjPJuBaZgo5zlI/GWI6QEAo6NyVIbPefa9CCkohYu7dP2rD/mrqnjEqfRHyl+h9VZrDoGpELqYg==",
|
|
||||||
"path": "microsoft.net.illink.tasks/8.0.8",
|
|
||||||
"hashPath": "microsoft.net.illink.tasks.8.0.8.nupkg.sha512"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0/android-arm64",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {},
|
|
||||||
".NETCoreApp,Version=v8.0/android-arm64": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0/android-arm64",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {},
|
|
||||||
".NETCoreApp,Version=v8.0/android-arm64": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0/linux-x64",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {},
|
|
||||||
".NETCoreApp,Version=v8.0/linux-x64": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,24 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0/linux-x64",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {},
|
|
||||||
".NETCoreApp,Version=v8.0/linux-x64": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,35 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeTarget": {
|
|
||||||
"name": ".NETCoreApp,Version=v8.0/win-x64",
|
|
||||||
"signature": ""
|
|
||||||
},
|
|
||||||
"compilationOptions": {},
|
|
||||||
"targets": {
|
|
||||||
".NETCoreApp,Version=v8.0": {},
|
|
||||||
".NETCoreApp,Version=v8.0/win-x64": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"dependencies": {
|
|
||||||
"Microsoft.NET.ILLink.Tasks": "8.0.8"
|
|
||||||
},
|
|
||||||
"runtime": {
|
|
||||||
"Simpsons_generator.dll": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"libraries": {
|
|
||||||
"Simpsons_generator/1.0.0": {
|
|
||||||
"type": "project",
|
|
||||||
"serviceable": false,
|
|
||||||
"sha512": ""
|
|
||||||
},
|
|
||||||
"Microsoft.NET.ILLink.Tasks/8.0.8": {
|
|
||||||
"type": "package",
|
|
||||||
"serviceable": true,
|
|
||||||
"sha512": "sha512-P8wR6MUWwYXIjPJuBaZgo5zlI/GWI6QEAo6NyVIbPefa9CCkohYu7dP2rD/mrqnjEqfRHyl+h9VZrDoGpELqYg==",
|
|
||||||
"path": "microsoft.net.illink.tasks/8.0.8",
|
|
||||||
"hashPath": "microsoft.net.illink.tasks.8.0.8.nupkg.sha512"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,13 +0,0 @@
|
|||||||
{
|
|
||||||
"runtimeOptions": {
|
|
||||||
"tfm": "net8.0",
|
|
||||||
"framework": {
|
|
||||||
"name": "Microsoft.NETCore.App",
|
|
||||||
"version": "8.0.0"
|
|
||||||
},
|
|
||||||
"configProperties": {
|
|
||||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
|
||||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user