Skip to content

Commit 2be0efb

Browse files
authored
Merge pull request #1 from aboutsource/feature/trello_power_up
Feature/trello power up
2 parents 395021d + ab9ce17 commit 2be0efb

15 files changed

Lines changed: 1353 additions & 0 deletions

.github/dependabot.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 2
2+
3+
updates:
4+
- package-ecosystem: "npm"
5+
directory: "/"
6+
schedule:
7+
interval: "daily"
8+
time: "04:00"
9+
open-pull-requests-limit: 10
10+
11+
- package-ecosystem: "github-actions"
12+
directory: "/"
13+
schedule:
14+
interval: "daily"
15+
time: "04:00"
16+
open-pull-requests-limit: 10
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: "Build and deploy"
2+
3+
on:
4+
- "push"
5+
- "workflow_dispatch"
6+
7+
jobs:
8+
build:
9+
name: "Build 🔨"
10+
runs-on: "ubuntu-latest"
11+
steps:
12+
- uses: "actions/checkout@v4"
13+
- uses: "actions/setup-node@v4"
14+
with:
15+
cache: "npm"
16+
17+
- run: "npm install"
18+
- run: "npm run build"
19+
- uses: "actions/upload-artifact@v4"
20+
with:
21+
name: "dist"
22+
path: "dist"
23+
24+
deploy-staging:
25+
name: "Deploy 🚜️"
26+
runs-on: "ubuntu-latest"
27+
if: "startsWith(github.ref, 'refs/tags/')"
28+
needs:
29+
- "build"
30+
steps:
31+
- name: "update apt cache"
32+
run: "sudo apt-get update"
33+
- name: "install rclone"
34+
run: "sudo apt-get -y install rclone"
35+
- uses: "actions/download-artifact@v4"
36+
with:
37+
name: "dist"
38+
path: "dist"
39+
- name: "obfuscate password for rclone"
40+
run: "echo \"RCLONE_FTP_PASS=$(echo ${{ secrets.HETZNER_FTP_PASS}} | rclone obscure -)\" >> $GITHUB_ENV"
41+
- name: "sync webspace"
42+
run: "rclone sync dist :ftp:"
43+
env:
44+
RCLONE_FTP_HOST: "${{ vars.HETZNER_FTP_HOST }}"
45+
RCLONE_FTP_USER: "${{ secrets.HETZNER_FTP_USER }}"
46+
RCLONE_FTP_EXPLICIT_TLS: "true"
47+
RCLONE_VERBOSE: 1
48+

.github/workflows/pr.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: "Dependabot Pull Request"
2+
3+
on: "pull_request_target"
4+
5+
permissions:
6+
pull-requests: "write"
7+
contents: "write"
8+
9+
jobs:
10+
dependabot:
11+
name: "Dependabot pull request"
12+
runs-on: "ubuntu-latest"
13+
if: "${{ github.actor == 'dependabot[bot]' }}"
14+
steps:
15+
- name: "Fetch Dependabot metadata"
16+
id: "metadata"
17+
uses: "dependabot/fetch-metadata@v2.2.0"
18+
with:
19+
github-token: "${{ secrets.GITHUB_TOKEN }}"
20+
- name: "Enable auto-merge for Dependabot pull requests"
21+
if: "${{ steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch' }}"
22+
run: "gh pr merge --auto --squash \"${PR_URL}\""
23+
env:
24+
PR_URL: "${{ github.event.pull_request.html_url }}"
25+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist/
2+
node_modules/

index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8" />
5+
</head>
6+
<body>
7+
<script src="https://p.trellocdn.com/power-up.min.js"></script>
8+
<script type="module" src="/src/trektor.js"></script>
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)