-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (44 loc) · 1.39 KB
/
deploy_to_gdrive.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Deploy Assets to GDrive'
on:
push:
branches:
- main
paths:
- 'verified/**'
workflow_dispatch:
inputs:
deploy-all:
type: boolean
description: Do you want to trigger a full re-deploy of all PP7 songs in GDrive? Defaults fo "false".
default: false
required: true
jobs:
DeployToGDrive:
runs-on: ubuntu-24.04
steps:
- name: Checkout bes-lyrics repo
uses: actions/checkout@v3
with:
path: bes-lyrics
sparse-checkout: |
verified
- name: Checkout bes-migrator repo
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT_BES_PROJECTS }}
repository: ioanlucut/bes-propres7-migrator
path: bes-propres7-migrator
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Run GDrive remote deployment from bes-propres7-migrator
working-directory: bes-propres7-migrator
run: |
npm i && npm run convert:remote
env:
FORCE_RELEASE_OF_ALL_SONGS: ${{ github.event.inputs.deploy-all }}
GDRIVE_BES_CLIENT_ID: ${{ secrets.GDRIVE_BES_CLIENT_ID }}
GDRIVE_BES_CLIENT_SECRET: ${{ secrets.GDRIVE_BES_CLIENT_SECRET }}
GDRIVE_BES_CLIENT_REFRESH_TOKEN: ${{ secrets.GDRIVE_BES_CLIENT_REFRESH_TOKEN }}
CI: true