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
5 changes: 3 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ updates:
# TypeScript 7 breaks `bun run lint`. Remove once upstream supports it.
- dependency-name: 'typescript'
versions:
- '>=7'
- '>=6.1'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'monthly'
interval: 'weekly'
target-branch: 'development'
groups:
github-actions:
patterns:
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
---
name: Checks

on:
push:
branches:
- development
- main
- master
pull_request:
branches:
- development
- main
- master

permissions:
contents: read

jobs:
checks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/checks@v1
uses: Screenly/edge-apps-actions/.github/workflows/checks.yml@v26.10.2
23 changes: 10 additions & 13 deletions .github/workflows/initialize-edge-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,17 @@ on:
required: true
type: string

permissions:
contents: read

run-name: Initializing ${{ inputs.edge_app_name }} in ${{ inputs.environment }}

jobs:
initialize:
name: Initializing ${{ inputs.edge_app_name }} in ${{ inputs.environment }}
runs-on: ubuntu-latest
environment: ${{ inputs.environment }}
steps:
- uses: actions/checkout@v7
with:
ref: ${{ inputs.environment == 'production' && 'main' || github.ref }}
- uses: Screenly/edge-apps-actions/initialize@v1
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
edge_app_name: ${{ inputs.edge_app_name }}
edge_app_title: ${{ inputs.edge_app_title }}
environment: ${{ inputs.environment }}
uses: Screenly/edge-apps-actions/.github/workflows/initialize.yml@v26.10.2
with:
environment: ${{ inputs.environment }}
edge_app_name: ${{ inputs.edge_app_name }}
edge_app_title: ${{ inputs.edge_app_title }}
secrets:
SCREENLY_API_TOKEN: ${{ secrets.SCREENLY_API_TOKEN }}
38 changes: 11 additions & 27 deletions .github/workflows/update-edge-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,18 @@ on:
workflow_dispatch:
push:
branches:
- development
- main
- master
tags:
- 'v[0-9]*'

run-name: Updating Simple Timer App in ${{ github.event_name == 'workflow_dispatch' && 'stage' || (github.ref == 'refs/heads/main' && 'production' || 'stage') }}
permissions:
contents: read

jobs:
deploy-stage:
name: Updating Simple Timer App in stage
runs-on: ubuntu-latest
if: (github.event_name == 'push' && github.ref == 'refs/heads/development') || github.event_name == 'workflow_dispatch'
environment: stage
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/update@v1
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
environment: stage
delete_missing_settings: 'true'
run-name: Updating Simple Timer App in ${{ (github.event_name == 'push' && !github.event.deleted && startsWith(github.ref, 'refs/tags/v')) && 'production' || 'stage' }}

deploy-production:
name: Updating Simple Timer App in production
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
environment: production
steps:
- uses: actions/checkout@v7
- uses: Screenly/edge-apps-actions/update@v1
with:
screenly_api_token: ${{ secrets.SCREENLY_API_TOKEN }}
environment: production
delete_missing_settings: 'true'
jobs:
update:
uses: Screenly/edge-apps-actions/.github/workflows/update.yml@v26.10.2
secrets:
SCREENLY_API_TOKEN: ${{ secrets.SCREENLY_API_TOKEN }}
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[![Version](https://img.shields.io/github/v/release/Screenly/simple-timer-app)](https://github.com/Screenly/simple-timer-app/releases/latest)

# Screenly Simple Timer App

![Simple Timer App Preview](/screenshots/1920x1080.webp)

## Getting Started

```bash
Expand All @@ -16,6 +20,22 @@ bun run deploy
screenly edge-app instance create
```

### Releasing

Pushes to `main` start a stage deploy, which waits for approval. To release to production, tag a commit on `main` and push the tag (the workflow refuses tags not on `main`); the production deploy also waits for approval:

```bash
git checkout main && git pull
git tag v26.10.0
git push origin v26.10.0
```

Then publish a GitHub Release whose notes list the pull requests merged since the previous release. Add `--draft` to review the notes before publishing:

```bash
gh release create v26.10.0 --verify-tag --generate-notes --title v26.10.0
```

## Configuration

The app accepts the following settings via `screenly.yml`:
Expand Down
3 changes: 1 addition & 2 deletions screenly.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
---
syntax: manifest_v1
id: 01KHKD38EETEJEB0CE3W4YSXFH
description: Screenly Simple Timer Edge App
icon: https://playground.srly.io/edge-apps/simple-timer/static/img/icon.svg
icon: https://playground.srly.io/edge-apps/icons/simple-timer.svg
author: Screenly, Inc.
categories:
- Utilities
Expand Down
46 changes: 0 additions & 46 deletions screenly_qc.yml

This file was deleted.

Binary file modified screenshots/1080x1920.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/1280x720.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/1920x1080.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/2160x3840.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/2160x4096.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/3840x2160.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/4096x2160.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/480x800.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/720x1280.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/800x480.webp
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading