Skip to content

Commit b92a088

Browse files
committed
Initial Commit
0 parents  commit b92a088

File tree

332 files changed

+2312
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+2312
-0
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "weekly"

.github/workflows/lint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Lint
2+
3+
on: workflow_call
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
lint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Setup Python
15+
uses: actions/setup-python@v4
16+
with:
17+
python-version: "3.11"
18+
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install flake8
23+
24+
- name: Run linters
25+
run: flake8 .

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Main branch pipeline
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
actions: read
11+
contents: write
12+
id-token: write
13+
14+
concurrency:
15+
group: ci-${{ github.ref }}
16+
cancel-in-progress: true
17+
18+
jobs:
19+
tests:
20+
uses: ./.github/workflows/tests.yml
21+
secrets: inherit
22+
lint:
23+
uses: ./.github/workflows/lint.yml
24+
secrets: inherit

.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# .github/workflows/release.yml
2+
name: Release
3+
4+
on:
5+
push:
6+
branches: [main]
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
build-release:
13+
name: Build artifacts
14+
runs-on: ubuntu-latest
15+
container:
16+
image: docker.io/batonogov/pyinstaller-linux:latest
17+
volumes:
18+
- ./src:/src
19+
env:
20+
SS_DEV_ID: ${{ secrets.SS_DEV_ID }}
21+
SS_DEV_PASSWORD: ${{ secrets.SS_DEV_PASSWORD }}
22+
steps:
23+
- name: Check out the repo
24+
uses: actions/checkout@v2
25+
26+
- name: Build package
27+
run: pyinstaller --onefile /src/app.py
28+
29+
- name: Create zip with artifacts
30+
run: |
31+
zip -r Artie.zip src/dist/app assets config.json launch.sh
32+
33+
- name: Upload assets
34+
uses: softprops/action-gh-release@v1
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
38+
with:
39+
files: Artie.zip

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
__pycache__
2+
roms
3+
dist
4+
build
5+
app.spec
6+
.DS_Store

Artie Scraper.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
progdir=$(
4+
cd $(dirname "$0")
5+
pwd
6+
)
7+
8+
program=./${progdir}/.artie/artie
9+
log_file="${progdir}/artie/log.txt"
10+
11+
$program >"$log_file" 2>&1

0 commit comments

Comments
 (0)