Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
JacekZubielik committed May 5, 2024
1 parent 80739bb commit 55a897e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 53 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,6 @@ jobs:
with:
fetch-depth: 0

# - name: Setup Node 20
# uses: actions/setup-node@v4
# with:
# node-version: 20.12
# cache: 'npm'

# - name: Install dependencies
# run: |
# npm install

- name: Lint code
uses: github/super-linter@v6
env:
Expand Down
71 changes: 28 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
pull_request:
branches: [main]
branches: [main,dev]
types:
- closed

Expand Down Expand Up @@ -49,47 +49,32 @@ jobs:
# DEFAULT_BRANCH: main
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# build:
# name: Build
# # needs: [ linter ]
# runs-on: [ubuntu-latest]

# steps:
# - name: Checkout code
# uses: actions/checkout@v4
# with:
# fetch-depth: 0

# - name: Setup Node 20
# uses: actions/setup-node@v4
# with:
# node-version: 20.12
# cache: 'npm'

# - name: Install dependencies
# run: |
# npm ci
build:
name: Build
# needs: [ linter ]
runs-on: [ubuntu-latest]

# - name: Compile
# run: |
# npm run clean && \
# npm run dist
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0

# - name: Create release zip
# run: zip -r release.zip .
# if: success()
- name: Create release zip
run: zip -r release.zip .
if: success()

# - name: Create artifact
# uses: actions/upload-artifact@v4
# with:
# name: "app-${{ github.sha }}"
# path: |
# dist/*.js
# release.zip
- name: Create artifact
uses: actions/upload-artifact@v4
with:
name: "app-${{ github.sha }}"
path: |
app/*.*
release.zip
release:
name: Release
# needs: [ build ]
needs: [ build ]
runs-on: [ubuntu-latest]

steps:
Expand Down Expand Up @@ -142,16 +127,16 @@ jobs:
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=sha
# type=sha

- name: Login to DockerHub ${{ env.REGISTRY }}
- name: Login to DockerHub
# if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Login to GitHub Container Registry ${{ env.REGISTRY }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -167,10 +152,10 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64

- name: Move cache
run: |
rm -rf /tmp/.buildx-cache
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
# - name: Move cache
# run: |
# rm -rf /tmp/.buildx-cache
# mv /tmp/.buildx-cache-new /tmp/.buildx-cache

- name: Docker Hub Description
uses: peter-evans/dockerhub-description@v4
Expand Down
11 changes: 11 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
License

In line with the reuse of luma.core, the software is available under MIT license

The MIT License (MIT)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5 changes: 5 additions & 0 deletions readme.md → README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
[![Docker](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/docker-publish-arm.yml/badge.svg)](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/docker-publish-arm.yml)


[![Linter](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/lint.yml/badge.svg?branch=dev)](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/lint.yml) [![Release](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/release.yml/badge.svg?branch=dev)](https://github.com/JacekZubielik/docker-oled-evo-sabre/actions/workflows/release.yml)



# SSD1322 OLED - Control and configuration for Audiophonics EvoSabre DAC

## Background
Expand Down

0 comments on commit 55a897e

Please sign in to comment.