-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
indent_size = 2 | ||
indent_style = space | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[{*.js,*.ts(x)}] | ||
insert_final_newline = true | ||
|
||
[*.tex] | ||
insert_final_newline = false |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
CANDIDATES_DIR=./candidates | ||
VERIFIED_DIR=./verified |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:require-extensions/recommended', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint', 'require-extensions'], | ||
root: true, | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
*.txt eol=lf diff=astextplain | ||
# Hint by https://idnotfound.wordpress.com/2009/05/09/word-by-word-diffs-in-git/ | ||
*.tex diff=tex |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#### Motivation and context | ||
|
||
<!--- Why is this change required? --> | ||
|
||
#### Checklist: | ||
|
||
- [x] I only use the allowed chars |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
name: 'CI & Auto Scripts' | ||
|
||
on: [ pull_request ] | ||
|
||
jobs: | ||
ChangedCodePathsFilter: | ||
runs-on: ubuntu-24.04 | ||
outputs: | ||
rcOutput: ${{ steps.filter.outputs.rcImportsHaveChanged }} | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
rcImportsHaveChanged: | ||
- 'temp-runners/rc_authors_to_process.txt' | ||
- 'temp-runners/rc_ids_to_ignore.txt' | ||
- 'temp-runners/rc_ids_to_process.txt' | ||
Build: | ||
needs: ChangedCodePathsFilter | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Build | ||
run: npm run build:ci | ||
env: | ||
CI: true | ||
FORCE_COLOR: 2 | ||
|
||
ImportFromRCBasedOnAuthorsOrIds: | ||
needs: [ ChangedCodePathsFilter, Build ] | ||
runs-on: ubuntu-24.04 | ||
if: needs.ChangedCodePathsFilter.outputs.rcOutput == 'true' | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
path: bes-lyrics | ||
|
||
- name: Checkout bes-lyrics-parser repo | ||
uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PAT_BES_PROJECTS }} | ||
repository: ioanlucut/bes-lyrics-parser | ||
path: bes-lyrics-parser | ||
sparse-checkout: | | ||
out | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Import from RC (if not exists already) | ||
working-directory: bes-lyrics | ||
run: | | ||
npm i && npm run import:rc:ci | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || git commit --cleanup=verbatim -am "[Bot] I have imported the resurse crestine songs based on the rc_authors_to_process.txt and rc_ids_to_process.txt. | ||
> | ||
> | ||
skip-checks: true" | ||
git push | ||
env: | ||
CI: true | ||
FORCE_COLOR: 2 | ||
|
||
AutoUpdateMeta: | ||
needs: [ Build ] | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Install dependencies | ||
run: npm i | ||
|
||
- name: Update meta (hashes, renames, etc.) | ||
run: | | ||
npm run meta:ci | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git add -A | ||
git diff --quiet && git diff --staged --quiet || git commit --amend --no-edit --cleanup=verbatim | ||
git push --force-with-lease | ||
env: | ||
CI: true | ||
FORCE_COLOR: 2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'LaTeX Release Conduct' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'LaTeX/conduct/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
LaTeXConductRelease: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Compile BES Conduct LaTeX doc | ||
uses: xu-cheng/latex-action@v3 | ||
with: | ||
root_file: BES_Conduct_Afisaj.tex | ||
working_directory: LaTeX/conduct/ | ||
latexmk_shell_escape: true | ||
|
||
- name: Generate Release Tag | ||
id: tag | ||
run: echo "{name}={release_tag::BES_Conduct_$(date +"%Y.%m.%d_%H-%M")}" >> $GITHUB_OUTPUT | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: 'LaTeX/conduct/BES_Conduct_Afisaj.pdf' | ||
tag_name: ${{ steps.tag.outputs.release_tag }} | ||
fail_on_unmatched_files: true | ||
draft: false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
name: 'LaTeX Songbook (no chords)' | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'verified/trupe_lauda_si_inchinare/**' | ||
- 'LaTeX/songbook/**' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
LaTeXSongbookRelease: | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Install Fonts | ||
run: | | ||
sudo apt-get update | ||
echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | sudo debconf-set-selections | ||
sudo apt-get install --reinstall ttf-mscorefonts-installer | ||
sudo fc-cache -fv # Refresh the font cache | ||
- name: Verify Font Installation | ||
run: | | ||
fc-list | grep -i "georgia" | ||
- name: Use Node.js 20.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
|
||
- name: Run Build songbook TEX | ||
run: | | ||
npm i && npm run songbook:convert | ||
env: | ||
CI: true | ||
|
||
- name: Compile BES Songbook LaTeX doc | ||
uses: xu-cheng/latex-action@v3 | ||
with: | ||
root_file: bes-songbook.tex | ||
working_directory: LaTeX/songbook/ | ||
latexmk_shell_escape: true | ||
latexmk_use_xelatex: true | ||
|
||
- name: Generate Release Tag | ||
id: tag | ||
run: | | ||
release_tag="BES_Songbook_$(date +"%Y_%B_%d_%H-%M")" | ||
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: 'LaTeX/songbook/bes-songbook.pdf' | ||
tag_name: ${{ steps.tag.outputs.release_tag }} | ||
fail_on_unmatched_files: true | ||
draft: false | ||
make_latest: true | ||
generate_release_notes: true | ||
body: Release al caietului de cântece BES ale trupelor de laudă și închinare (se face incremental, după fiecare schimbare în repository). | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/.idea/aws.xml | ||
/.idea/cssdialects.xml | ||
/.idea/nx-console.xml | ||
/.idea/git_toolbox_blame.xml | ||
/.idea/git_toolbox_prj.xml | ||
/.idea/webResources.xml | ||
node_modules/ | ||
**/*.aux | ||
**/*.fdb_latexmk | ||
**/*.fls | ||
**/*.toc | ||
**/*.lg | ||
**/*.gz | ||
**/*.log | ||
**/*.out | ||
**/*.thm | ||
**/*.xdv | ||
bes-songbook.tex | ||
bes-songbook.pdf | ||
target-tex |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.