Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/Google.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,51 @@
name: OS Aplet pro google cloud

on:
push:
branches:
- main

jobs:
authenticate:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Authenticate to Google Cloud
uses: google-github-actions/[email protected]
with:
credentials_json: ${{ secrets.GCP_CREDENTIALS }}

test:
runs-on: ubuntu-latest
needs: authenticate
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Run tests
run: |
echo "Running tests..."
# Sem vložte příkazy pro spuštění testů

deploy:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Deploy to Google Cloud
run: |
echo "Deploying to Google Cloud..."
# - name: Deploy to Google Cloud
run: |
echo "Deploying to Google Cloud..."
gcloud config set project YOUR_PROJECT_ID os-aplet
gcloud auth activate-service-account --key-file=${{ secrets.GCP_CREDENTIALS }}
gcloud app deploy

- name: Ověření ve službě Google Cloud
používá: google-github-actions/[email protected]

28 changes: 27 additions & 1 deletion .github/workflows/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,27 @@
*** run: circleci/config.yml

version: 2.1

jobs:
build:
docker:
- image: circleci/python:3.8
steps:
- checkout
- run:
name: Install dependencies
command: |
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
- run:
name: Run tests
command: |
. venv/bin/activate
pytest

workflows:
version: 2
build_and_test:
jobs: .github/workflows/config.yml
- build
run: https://circleci.com/config.yml
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
OS Aplet ❤️ by Lukáš Budínský alias @lukins=>nyní nově @lukins-cz
OS Aplet ❤️® by Lukáš Budínský alias @lukins nebo @lukins-cz tyto profili jsou kvůli github schovány, nyní nově @osAplet
[OS Aplet - Dependencies.csv](https://github.com/lukins-cz/OS-Aplet-/files/13577570/OS.Aplet.-.Dependencies.csv)

OS Aplet ❤️ © prosinec 2012 by Lukáš Budínský podléhá licenci Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. Chcete-li zobrazit kopii této licence, navštivte https://creativecommons.org/licenses/by-nc-sa/4.0/
run:

OS Aplet ❤️® byl napsán již někdy © prosinec 2012 by Lukáš Budínský, podléhá licenci
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International. Chcete-li zobrazit kopii této licence, navštivte https://creativecommons.org/licenses/by-nc-sa/4.0/
Jde o můj jedinečný inteligentní automatický operační systém OS Aplet ❤️®

22 changes: 22 additions & 0 deletions os_aplet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const fs = require('fs');

fs.readFile('script.js', 'utf8', (err, data) => {
if (err) {
console.error('Error reading file:', err);
return;
}

try {
const scriptConfig = JSON.parse(data);
console.log('Script config:', scriptConfig);

// Příklad testu
if (scriptConfig.script && scriptConfig.showConsole) {
console.log('Script je aktivní a konzole je zobrazena.');
} else {
console.log('Script není aktivní nebo konzole není zobrazena.');
}
} catch (err) {
console.error('Error parsing JSON:', err);
}
});
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"script": true,
"showConsole": true
}