Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sync upstream #2

Merged
merged 233 commits into from
Mar 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
3106c6b
doc: todo for 2.0
yihong0618 Oct 8, 2022
bdb882e
fix: vercel and github page both work
yihong0618 Feb 2, 2023
239e8a7
Merge pull request #370 from yihong0618/fix_vercel
yihong0618 Feb 2, 2023
f631921
Update gh-pages.yml
yihong0618 Feb 2, 2023
cdf2f7b
Update README.md
yihong0618 Feb 2, 2023
48a8bdb
Update index.jsx
lingdeyiyicifang Feb 2, 2023
44fad18
Update index.jsx
lingdeyiyicifang Feb 2, 2023
161facb
Update index.jsx
lingdeyiyicifang Feb 2, 2023
376bc5b
Update const.js
lingdeyiyicifang Feb 4, 2023
70336e4
Update index.jsx
lingdeyiyicifang Feb 4, 2023
de0b463
Update index.jsx
lingdeyiyicifang Feb 4, 2023
ce75edc
Update index.jsx
lingdeyiyicifang Feb 4, 2023
e559a95
Merge pull request #371 from lingdeyiyicifang/EditMap
yihong0618 Feb 7, 2023
dc1529a
Update README-CN.md
frhfeng Feb 14, 2023
948b6ba
Update README-CN.md
frhfeng Feb 16, 2023
ef4b553
Update README-CN.md
frhfeng Feb 16, 2023
a0fae8b
Merge pull request #373 from frhfeng/patch-3
yihong0618 Feb 17, 2023
2f53750
feat: add tulipsport support
rdshoep Feb 20, 2023
149029c
docs: 添加GitHub Pages方案说明文档到README-CN.md中;添加部分代码注视,并修复一个查询区间的时间取值问题
rdshoep Feb 28, 2023
691d755
style: reformatted tulipsport_sync.py by black
rdshoep Feb 28, 2023
e603dc9
style: reformatted tulipsport_sync.py by black again(indent-size: 2 s…
rdshoep Feb 28, 2023
1e50a05
fix: 修复被覆盖的start_time_local,设置为end_time_local
rdshoep Mar 1, 2023
8d1d365
doc: 合并GitHub Pages配置说明,调整郁金香配置文档结构
rdshoep Mar 1, 2023
be3a9af
feat: tulipsport_sync.py add --with-gpx option
rdshoep Mar 2, 2023
80f91ab
chore: tulipsport sync add --with-gpx in run_data_sync.yml file
rdshoep Mar 2, 2023
1284b2a
fix: add the compatible check when activity node lost
rdshoep Mar 2, 2023
584114d
fix: use dict.__contains__ instead of if else.
rdshoep Mar 2, 2023
c19590e
style: reformat the code~
rdshoep Mar 2, 2023
12ff580
share my Running page
Ym9i Mar 3, 2023
96ec63a
Merge pull request #381 from Ym9i/master
yihong0618 Mar 3, 2023
a8d79f2
Merge pull request #379 from TulipSport/tulipsport
yihong0618 Mar 4, 2023
dadfab9
doc: new runners
yihong0618 Mar 12, 2023
821b5f9
doc: new runner
yihong0618 Mar 13, 2023
d0e09e1
Update README.md
imnxg Mar 17, 2023
b395768
Add Codoon to run_data_sync.yml
Bpazy Apr 1, 2023
733e7aa
doc: new runner
yihong0618 Apr 2, 2023
9110b50
Merge pull request #391 from Bpazy/feature/action-support-codoon
yihong0618 Apr 2, 2023
64c7be7
fix typo
tiny656 Apr 5, 2023
699c01c
chore: update README
XmchxUp Apr 6, 2023
de956c7
Merge pull request #394 from tiny656/fix-typos
yihong0618 Apr 7, 2023
332ad3f
Merge pull request #395 from XmchxUp/chore/update_readme
yihong0618 Apr 7, 2023
141fb40
fix: RunTime using `moving_time` from activity instead of `distance *…
ben-29 Apr 13, 2023
530d912
Merge pull request #398 from ben-29/pr_fix_moving_time
yihong0618 Apr 17, 2023
cf4d75c
Add: stevenash0822 homepage & Update: calculation of avgPace
stevenash0822 Apr 17, 2023
13b9c2d
Merge pull request #399 from stevenash0822/feature_pr
yihong0618 Apr 18, 2023
3b4cc3b
fix: #396 #403
yihong0618 Apr 26, 2023
d106c6a
f
yihong0618 May 1, 2023
f2d1643
style:fix runtable mix-width
shaonianche May 6, 2023
4dbd287
refactor:cleanup code
shaonianche May 7, 2023
62f6acc
refactor:cleanup code
shaonianche May 7, 2023
c2c52b2
refactor:fix dependency conflict warning
shaonianche May 7, 2023
dc2c8b9
refactor:fix dependency conflict warning
shaonianche May 7, 2023
ba191b0
refactor:fix dependency conflict warning
shaonianche May 7, 2023
3a2429f
refactor:fix dependency conflict warning
shaonianche May 7, 2023
786c8d6
refactor:fix dependency conflict warning
shaonianche May 7, 2023
f9568f5
refactor:fix dependency conflict warning
shaonianche May 7, 2023
c209783
refactor:fix dependency conflict warning
shaonianche May 7, 2023
b1fb21a
refactor:fix dependency conflict warning
shaonianche May 7, 2023
d8460fa
Merge pull request #387 from imnxg/patch-1
yihong0618 May 8, 2023
0062d88
Merge pull request #411 from shaonianche/fix-css
yihong0618 May 8, 2023
4917272
Merge pull request #414 from shaonianche/dustman
yihong0618 May 8, 2023
78afad0
commit: fix click area problem
VintLin May 11, 2023
cb3ffed
Merge pull request #416 from VintLin/fix_click_area
yihong0618 May 11, 2023
18c57a8
commit: add personal website
VintLin May 11, 2023
d480cc2
commit: formatting
VintLin May 11, 2023
73306e9
Merge pull request #417 from VintLin/feat_vint_website
yihong0618 May 11, 2023
21e2948
fix: #412
yihong0618 May 12, 2023
fddf9a7
fix: eval evil for joyrun and replace string by install of
yihong0618 May 20, 2023
3cacfc6
fix: lint
yihong0618 May 20, 2023
1e04b05
:running: share muyids's running page
wonderfulest Jun 5, 2023
95e1b96
Merge pull request #419 from muyids/feature/share
yihong0618 Jun 5, 2023
1e75680
doc: new runner
yihong0618 Jun 7, 2023
240a22a
doc: new runner
yihong0618 Jun 17, 2023
5b64a70
fix: #426
yihong0618 Jun 20, 2023
49dea38
申请加入
oreray Jun 21, 2023
9cf7161
Merge pull request #428 from raywangsy/patch-1
yihong0618 Jun 22, 2023
52ec6bf
城市分割问题修改
zongbintu Jun 28, 2023
12cedf0
Update utils.js
zongbintu Jun 28, 2023
aedc1f2
Merge pull request #431 from 2tu/fix-city
yihong0618 Jun 28, 2023
d32a187
申请加入
tiny656 Jun 29, 2023
c24622d
Merge pull request #432 from tiny656/new-1
yihong0618 Jun 29, 2023
4b984fe
refactor: use event delegation to handle all <rect> & <polyline> in t…
vlin Jun 29, 2023
a595ca3
Merge pull request #434 from vlin/refactor
yihong0618 Jun 29, 2023
40797f0
fix: drop useless log
yihong0618 Jun 29, 2023
3b37470
feat:add garmin device in strava_to_garmin_sync script
zhaohongxuan Jun 29, 2023
fcd8652
style:add default value for use_fake_garmin_device
zhaohongxuan Jul 1, 2023
dddde0a
Merge pull request #435 from zhaohongxuan/feature/adapter_garmin_device
yihong0618 Jul 1, 2023
58f396a
chore: use <></> instead of the root node of the components to improv…
vlin Jul 3, 2023
ef5cc24
chore: remove unnecessary <div> tags to reduce dom node nesting
vlin Jul 3, 2023
770abf6
Merge pull request #440 from yihong0618/dev-remove-tags
yihong0618 Jul 3, 2023
f17a3e6
feat(privacy): ignore start, end and choose points
EINDEX Jul 4, 2023
59ea643
docs: adding eindex workouts page
EINDEX Jul 4, 2023
26674cf
Merge pull request #442 from EINDEX/patch-1
yihong0618 Jul 4, 2023
eec7945
fix: catch ValueError for non-number RANGES
EINDEX Jul 4, 2023
fc3de6e
fix(privacy): using strava way to hidding polyline
EINDEX Jul 5, 2023
18b4d67
Merge branch 'yihong0618:master' into master
EINDEX Jul 5, 2023
9a462a6
style: black format
EINDEX Jul 5, 2023
94fd1a2
refactor(privacy): for-loop to list-comprehension and typo fix
EINDEX Jul 5, 2023
0fee27f
Merge pull request #441 from EINDEX/master
yihong0618 Jul 5, 2023
f58dd64
Fix ci (#444)
yihong0618 Jul 5, 2023
24563b8
fix: strava same logic as garmin
yihong0618 Jul 5, 2023
fda0a1d
doc: info only run
yihong0618 Jul 5, 2023
d76bf39
fix: #443
yihong0618 Jul 6, 2023
a9a3f78
feat:support for download Garmin fit file (#446)
Jul 7, 2023
d56ef2c
Update README-CN.md (#447)
yihong0618 Jul 9, 2023
0336dc7
fix: ignore device info for origin fit file in strava_to_garmin_sync …
zhaohongxuan Jul 10, 2023
23e6866
fix: polyline_str maybe None
yihong0618 Jul 10, 2023
33bd596
fit文件读取 (#449)
agassiyzh Jul 17, 2023
76ebf39
Update README.md (#453)
fpGHwd Jul 17, 2023
6a19a55
Update README.md (#455)
deepinwine Jul 20, 2023
2cbfadc
Fix Sports Type in codoon_sync.py (#457)
hyyz17200 Jul 22, 2023
cff9529
Update README-CN.md (#459)
fpGHwd Jul 22, 2023
085a585
Save synced filenams and skip sync next times (#454)
agassiyzh Jul 23, 2023
b71b5a0
fix: 457, add TCX_TYPE_DICT (#462)
ben-29 Jul 23, 2023
46b3a32
fix: #454, no `file_names` when sync from app (#463)
ben-29 Jul 24, 2023
c02d1da
Merge branch 'master' into v2.0
yihong0618 Jul 26, 2023
f8250ea
添加保存过程中产生的数据文件到github action cache选项,顺便重新整理了一下github aciton workflow …
agassiyzh Jul 29, 2023
386ab1f
ci: fix typo
yihong0618 Jul 29, 2023
8b7f78b
readme中node版本修改 (#466)
ttkltll Aug 3, 2023
b3b8df7
feat: Typescript! (#461)
frostming Aug 3, 2023
47d2b45
fix: 同一天有多个运动时选中地图路线显示错误问题 (#468)
Coder-ZJQ Aug 5, 2023
6f718af
Add sync strava data args comment: `--only-run` (#471)
Bpazy Aug 17, 2023
6a636f0
feat: change to SPA and vite (#472)
frostming Aug 23, 2023
8ec7f3e
fix: set gh page default to true for newbie.......
yihong0618 Aug 25, 2023
07e7c32
Add correction on instruction of build github pages. (#476)
fpGHwd Aug 27, 2023
2d6ad92
feat: add a new runner's page (#482)
donghao526 Sep 5, 2023
dfd3931
fix: using session to download keep route
yihong0618 Sep 8, 2023
cc3e147
chore: merge example data
yihong0618 Sep 10, 2023
3d5b8d9
doc: drop vercel cache build doc for newbie
yihong0618 Sep 10, 2023
a0ada4b
fix: fix fullscreen css (#487)
yihong0618 Sep 10, 2023
e484aa1
chore:upgrade node version and pnpm (#474)
shaonianche Sep 10, 2023
d6b95ba
doc: fix v2.0 doc and actions change (#488)
yihong0618 Sep 11, 2023
9ca343b
fix: gh-pages to Actions and fix the path bug (#490)
yihong0618 Sep 13, 2023
3a089e3
fix: v2.0 can not zoom (#492)
yihong0618 Sep 17, 2023
97f62b6
chore: merge mater to fix confict
yihong0618 Sep 17, 2023
59ff75a
fix: gpx encode error maybe
yihong0618 Sep 17, 2023
fda1841
Merge branch 'master' into v2.0
yihong0618 Sep 18, 2023
6c63bbc
chore:gnore ./dist (#494)
shaonianche Sep 18, 2023
c4e4384
fix: by comments
yihong0618 Sep 18, 2023
19bfd3c
Merge branch 'v2.0' of https://github.com/yihong0618/running_page int…
yihong0618 Sep 18, 2023
13cdddd
doc: v2.0 doc
yihong0618 Sep 23, 2023
3e342dc
chore: my data
yihong0618 Sep 23, 2023
84ffd06
fix wrong path (#498)
tiny656 Sep 23, 2023
0ea2f4a
#484 导出keep接口升级无法获取gpx数据的跑步记录 (#496)
Fariacool Sep 23, 2023
758695a
fix Readme errors about `deploy to Cloudflare` (#499)
L1cardo Sep 23, 2023
6585dc2
doc: chore, change typo
yihong0618 Sep 24, 2023
4b5accd
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Sep 24, 2023
38e044c
fix: #500
yihong0618 Sep 26, 2023
6c9d49b
feat: fix garmin down (#505)
yihong0618 Sep 26, 2023
5ecb608
fix: garth package
yihong0618 Sep 26, 2023
e73fc6f
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Sep 26, 2023
98ff750
fix: reverse bug
yihong0618 Sep 27, 2023
e088d55
fix: use garth package
yihong0618 Sep 27, 2023
22966d8
Update README.md for 2.0 github pages deployment (#506)
conge Sep 29, 2023
320e853
doc: bring perssions in page back
yihong0618 Sep 29, 2023
5add127
fix: garmin sync cn configure
yihong0618 Oct 4, 2023
3290b3f
fix typo (#510)
NaturezzZ Oct 6, 2023
1c08b83
Update README.md
yihong0618 Oct 6, 2023
d778e65
Update README-CN.md
yihong0618 Oct 6, 2023
00a6e04
更新新版本佳明同步文档 (#507)
LeslieeHwang Oct 6, 2023
e4a2cb6
feat: add IOS Shortcuts in README (#513)
jujimeizuo Oct 10, 2023
a0d6ed5
fix: strava to garmin sync
yihong0618 Oct 10, 2023
9e0c6e2
fix: #516 (#517)
yihong0618 Oct 11, 2023
be1cefe
doc: new runner
yihong0618 Oct 11, 2023
657d135
fix: upload to strava type
yihong0618 Oct 11, 2023
ae72e21
fix: cityMatch (#521)
ben-29 Oct 15, 2023
34cbf5d
upd runner's page url (#522)
haowei93 Oct 18, 2023
a49bd16
doc: new runner
yihong0618 Oct 19, 2023
c2a4c0b
updatereadme (#527)
zerone0x Oct 20, 2023
386fa32
fix: #484 keep gps data decode (#524)
ben-29 Oct 21, 2023
34c859e
fix: bring old logic back
yihong0618 Oct 21, 2023
a7b2e68
fix: drop useless png
yihong0618 Oct 23, 2023
94485c3
docs:rewrite docs (#514)
shaonianche Oct 25, 2023
c74099b
doc: runner info fix
yihong0618 Oct 26, 2023
3f073b7
fix: show in firefox
yihong0618 Oct 27, 2023
23464b5
feat: add NavigationControl (#534)
ben-29 Oct 28, 2023
272c081
feat:suport heart_rate in export gpx file (#529)
zhaohongxuan Oct 29, 2023
2ff0529
feat: reduce grid svg file size (#535)
ben-29 Oct 29, 2023
ccb1db1
upd deploy to github-pages (#537)
haowei93 Nov 3, 2023
875f87a
fix: gh-pages build: drop the ref while trigger from Run Data Sync (#…
ben-29 Nov 6, 2023
cee8e18
fix: nrc sync
yihong0618 Nov 11, 2023
0a99e20
Master (#545)
zlog-in Nov 12, 2023
0911ed8
Update strava_to_garmin_sync.py (#544)
lipeng31 Nov 13, 2023
9727d59
doc: add nrc detail written by @angolap
yihong0618 Nov 18, 2023
dbdfa8c
perf: use auto instead of scroll (#550)
orionna319 Nov 23, 2023
048e941
feat: `RunRow` toggle selection & cursor pointer (#551)
orionna319 Nov 24, 2023
3f9584a
perf: split `activities.json` from index (#552)
orionna319 Nov 27, 2023
b63aa7d
fix a bug in track.py. (#559)
conanyangqun Dec 2, 2023
71705f0
fix: #566
yihong0618 Dec 8, 2023
7c39ed2
fix: update the year when change by Title & City, otherwise the `SVG`…
ben-29 Dec 11, 2023
b2007b5
fix: dockerfile typo thanks @dywu516
yihong0618 Dec 12, 2023
b432476
fix: Codoon tcx output use start_time as ID instead of Codoon id (#568)
anChaOs Dec 12, 2023
2951a08
docs: add runner (#571)
XmchxUp Dec 15, 2023
7726ee4
feat: :sparkles: Support ga, default off (#572)
XmchxUp Dec 18, 2023
f9af394
docs: add runner page (#577)
85Ryan Dec 19, 2023
57c3360
添加 (#578)
8824PPZ Dec 20, 2023
7938c44
Update index.tsx (#579)
ElvisZhu Dec 20, 2023
6d7bd29
Reduce svg size & lzay load github.svg and grid.svg (#580)
vlin Dec 22, 2023
0ce9e31
feat: sync garmin cn to garmin global
NaturezzZ Dec 27, 2023
08aaf63
github workflow
NaturezzZ Dec 27, 2023
c75da4a
nits
NaturezzZ Dec 27, 2023
8cc6fd4
nits
NaturezzZ Dec 27, 2023
64e4821
fix fit download gpx file (#582)
NaturezzZ Dec 27, 2023
04ee962
garmin-cn sync garmin-global tutorial in readme and readme-cn
NaturezzZ Dec 27, 2023
f32d6d0
fix: lock lxml version
yihong0618 Dec 30, 2023
11bb7dc
merge upstream
NaturezzZ Dec 30, 2023
6eaf5af
Refactor: sync garmin cn to global
NaturezzZ Dec 30, 2023
d927ee9
nits
NaturezzZ Dec 30, 2023
5a0f33e
remove fake device
NaturezzZ Jan 3, 2024
7180aa2
fix: #584 change fit-tool to garmin-fit-sdk (#590)
ben-29 Jan 4, 2024
d24092e
Merge branch 'upstream-master' into sync_garmin_cn_global
NaturezzZ Jan 4, 2024
a17ac4b
step 2, generate running page from .fit and .gpx
NaturezzZ Jan 4, 2024
9871465
nits
NaturezzZ Jan 4, 2024
634b25f
fix readme
NaturezzZ Jan 5, 2024
3a35e45
Merge pull request #583 from NaturezzZ/sync_garmin_cn_global
NaturezzZ Jan 5, 2024
84e2a2b
Feat: lights switch (#591)
ben-29 Jan 9, 2024
bfc9f26
doc: note for PRIVACY_MODE (#594)
ben-29 Jan 10, 2024
4b37099
chore: my data
yihong0618 Jan 14, 2024
ba466d1
Merge branch 'master' of https://github.com/yihong0618/running_page
yihong0618 Jan 14, 2024
6a56fe3
fix: resolve issue #597 (#599)
NaturezzZ Jan 16, 2024
fd55e89
fix: svg not found causes page crash (#598)
orionna319 Jan 16, 2024
b9d9c30
Joyrun gpx export fix for pauses and gpx segments (#601)
Rayjry Jan 25, 2024
7742a00
fix: text position change when map zoom in and zoom out (#604)
sayidhe Jan 25, 2024
b19490d
set default file_suffix = gpx (#609)
yangyang5214 Jan 31, 2024
52a3876
add yer1k's running page (#608)
Yer1k Jan 31, 2024
c2ccce1
Update ci.yml (#610)
Yer1k Feb 1, 2024
c30a060
Update GitHub Actions and README (#611)
Yer1k Feb 2, 2024
d903edf
fix: strava version
yihong0618 Mar 1, 2024
e3b1e20
fix: stravaweblib version
yihong0618 Mar 1, 2024
bab17a5
fix: ts type error (#622)
yihong0618 Mar 3, 2024
198b34a
Fix README typo (#624)
tianheg Mar 9, 2024
289dc07
feat: coros sync (#623)
haowei93 Mar 10, 2024
117b9a6
add run.drink.cafe (#628)
weaming Mar 20, 2024
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
66 changes: 0 additions & 66 deletions .eslintrc

This file was deleted.

34 changes: 34 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// eslint-disable-next-line no-undef
module.exports = {
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:prettier/recommended',
],
overrides: [],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react', 'prettier'],
root: true,
settings: {
react: {
version: 'detect',
},
},
rules: {
'prettier/prettier': 'off',
'react/prop-types': 'off',
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
},
globals: {
NodeJS: true,
},
};
40 changes: 17 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,21 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# from pdm
- name: Set Variables
id: set_variables
run: |
echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT
echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache PIP
uses: actions/cache@v2
with:
path: ${{ steps.set_variables.outputs.PIP_CACHE }}
key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Check formatting (black)
run: black . --check
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
id: setup_python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements-dev.txt'

- name: Install dependencies
run: |
pip install -r requirements-dev.txt

- name: Check formatting (black)
run: black . --check
125 changes: 85 additions & 40 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -1,64 +1,109 @@
name: Publish GitHub Pages

# Controls when the action will run.
# Controls when the action will run.
on:
# trigger when the Run Data Sync workflow succeeded
workflow_run:
workflows: ["Run Data Sync"]
types:
- completed

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
save_data_in_github_cache:
required: true
type: boolean
default: false
data_cache_prefix:
required: true
type: string
default: track_data
workflow_call:
inputs:
save_data_in_github_cache:
required: true
type: boolean
default: false
data_cache_prefix:
required: true
type: string
default: track_data

permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
build_and_deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
# if your default branches is not master, please change it here
ref: master

- name: Cache Data Files
if: inputs.save_data_in_github_cache
uses: actions/cache@v4
with:
path: |
activities
assets
GPX_OUT
TCX_OUT
FIT_OUT
Workouts
run_page/data.db
src/static/activities.json
imported.json
key: ${{ inputs.data_cache_prefix }}-${{ github.sha }}-${{ github.run_id }}
restore-keys: |
${{ inputs.data_cache_prefix }}-${{ github.sha }}-
${{ inputs.data_cache_prefix }}-

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.4
uses: actions/setup-node@v4
with:
node-version: '20'

- uses: pnpm/action-setup@v2
name: Install pnpm
with:
node-version: '16'
version: 8
run_install: false

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-yarn-
${{ runner.os }}-pnpm-store-

- run: |
yarn install
- run: |
yarn build --prefix-paths
- run: |
cp -r assets/ public/static
- name: Install dependencies
run: pnpm install
- name: Build
run: PATH_PREFIX=/${{ github.event.repository.name }} pnpm build

- name: GitHub Pages
uses: crazy-max/ghaction-github-pages@v2.2.0
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Git branch where site will be deployed
target_branch: gh-pages
# Create incremental commit instead of doing push force
keep_history: true
# Build directory to deploy
build_dir: public
# Write the given domain name to the CNAME file
#fqdn: custom.domain.name # optional
# Prevent Jekyll from building the site
jekyll: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Upload dist repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v3
32 changes: 0 additions & 32 deletions .github/workflows/new_pr_bluetooth.yml

This file was deleted.

Loading
Loading