Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Jul 10, 2024
1 parent 97d4ba1 commit 2e78935
Showing 1 changed file with 29 additions and 6 deletions.
35 changes: 29 additions & 6 deletions .github/workflows/deploy-gh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,28 +72,35 @@ jobs:
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/package.json') }}

- name: Cache runs
uses: actions/cache@v4
id: cache-runs
- name: Restore transformed runs
uses: actions/cache/restore@v4
id: cache-runs-restore
with:
path: public/data/activities/transformed
key: ${{ runner.os }}-build-${{ env.cache-name }}
key: ${{ runner.os }}-runs

- name: Cache auth
uses: actions/cache@v4
id: cache-auth
with:
path: credentials.json
key: ${{ runner.os }}-build-${{ env.cache-name }}
key: ${{ runner.os }}-auth

- name: Install
run: npm install

- name: Fetch runs
run: node scripts/index

- name: Save transformed runs
uses: actions/cache/save@v4
id: cache-runs-save
with:
path: public/data/activities/transformed
key: ${{ runner.os }}-runs

- name: Build runs list
run: node scripts/list

Expand All @@ -109,6 +116,22 @@ jobs:
path: build
retention-days: 1

- name: Store runs data
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: runs-data
path: public/data
retention-days: 1

- name: Store activity list
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v4
with:
name: activity-list
path: src/data/activity_list.json
retention-days: 1

deploy:
runs-on: ubuntu-latest
needs: build
Expand Down

0 comments on commit 2e78935

Please sign in to comment.