-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
751 changed files
with
99,640 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"name": "Frontend", | ||
"path": "frontend" | ||
}, | ||
{ | ||
"name": "Documentation", | ||
"path": "docs" | ||
}, | ||
{ | ||
"name": "Backend", | ||
"path": "backend" | ||
}, | ||
{ | ||
"name": "Other", | ||
"path": "./" | ||
} | ||
], | ||
"launch": { | ||
"version": "0.2.0", | ||
"compounds": [ | ||
{ | ||
"name": "Run All", | ||
"configurations": [ | ||
"Run Backend: dev", | ||
"Run Frontend: dev" | ||
] | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
venv/ | ||
.env | ||
.DS_Store | ||
.gitignore | ||
.git | ||
.github | ||
.idea | ||
.buildHelper.txt | ||
node_modules | ||
__pycache__ | ||
|
||
# All hidden files | ||
.* | ||
|
||
Dockerfile | ||
README.md | ||
babel.cfg | ||
unraid.xml | ||
|
||
screenshots/ | ||
docs/ | ||
testing/ | ||
database/ | ||
delete/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Create Pre-Release on Version Change | ||
|
||
on: | ||
push: | ||
branches: | ||
- v3-beta | ||
|
||
jobs: | ||
check-version-and-create-release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "14" | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Get previous package version | ||
id: get_prev_version | ||
run: echo "::set-output name=prev_version::$(git show HEAD^:package.json | jq -r '.version')" | ||
|
||
- name: Get current package version | ||
id: get_current_version | ||
run: echo "::set-output name=current_version::$(jq -r '.version' package.json)" | ||
|
||
- name: Compare versions | ||
id: compare_versions | ||
run: | | ||
if [[ "${{ steps.get_prev_version.outputs.prev_version }}" != "${{ steps.get_current_version.outputs.current_version }}" ]]; then | ||
echo "Version changed. Creating Pre-Release." | ||
echo "New version: ${{ steps.get_current_version.outputs.current_version }}, Previous version: ${{ steps.get_prev_version.outputs.prev_version }}" | ||
echo "::set-output name=version_changed::true" | ||
else | ||
echo "Version unchanged. No Pre-Release needed." | ||
echo "::set-output name=version_changed::false" | ||
fi | ||
- name: Generate Release Notes | ||
id: generate_release_notes | ||
run: | | ||
echo "::set-output name=release_notes::$(git log --pretty=format:"- %s%n" $(git rev-list ${{ github.event.before }}..${{ github.sha }}))" | ||
- name: Create Pre-Release | ||
if: steps.compare_versions.outputs.version_changed == 'true' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
# Create a new Pre-Release using GitHub API | ||
# Replace ":owner", ":repo", and other placeholders with actual values | ||
# You can use curl or other tools to interact with the API | ||
curl -X POST \ | ||
-H "Authorization: token $GITHUB_TOKEN" \ | ||
-d '{ | ||
"tag_name": "'${{ steps.get_current_version.outputs.current_version }}'", | ||
"target_commitish": "v3-beta", | ||
"name": "Pre-Release V'${{ steps.get_current_version.outputs.current_version }}'", | ||
"body": "${{ steps.generate_release_notes.outputs.release_notes }}", | ||
"prerelease": true | ||
}' \ | ||
"https://api.github.com/repos/wizarrrr/wizarr/releases" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Docker Build and Push | ||
|
||
on: | ||
push: | ||
branches: | ||
- v3-beta | ||
|
||
permissions: | ||
packages: write | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: wizarrrr/wizarr | ||
IMAGE_TAG: v3-beta | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Checkout the repo | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
# Set up Docker Buildx | ||
- name: Set up Docker Buildx | ||
id: buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
# Login to GHCR | ||
- name: Login to GHCR | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# Build and push the image | ||
- name: Build and push | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} | ||
platforms: linux/amd64,linux/arm64,linux/arm64/v7,linux/arm64/v8 | ||
provenance: false |
Oops, something went wrong.