add Somebody Someone by Korn #594
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
branches: [ master ] | |
paths-ignore: | |
- 'docs/' | |
- 'tools/' | |
- 'README.md' | |
jobs: | |
build: | |
name: Build & deploy website to GitHub Pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Resolve dependencies | |
run: sudo apt-get install python3-setuptools sassc | |
- uses: actions/checkout@v2 | |
- name: Move latest database files to be under lyrics.git | |
run: | | |
mkdir lyrics.git | |
mv database translations lyrics.git | |
- name: Clone lyrics-website-generator.git | |
run: git clone "https://lyrics-admin:${GITHUB_TOKEN}@github.com/Lyrics/lyrics-website-generator.git" lyrics-website-generator.git | |
- name: Clone lyrics.github.io.git | |
env: | |
GITHUB_DEPLOY_TOKEN: ${{ secrets.GITHUB_DEPLOY_TOKEN }} | |
run: git clone "https://lyrics-admin:${GITHUB_DEPLOY_TOKEN}@github.com/Lyrics/lyrics.github.io.git" lyrics.github.io.git | |
- name: Generate website files | |
run: | | |
cd ./lyrics-website-generator.git/ | |
make INSTALL_DEPENDENCIES BUILD | |
- name: Copy updated website files | |
run: | | |
cd ./lyrics.github.io.git/ | |
rm -rf docs | |
mv ../lyrics-website-generator.git/www docs | |
- name: Deploy updated website files | |
run: | | |
cd ./lyrics.github.io.git/ | |
git config user.name "Lyrics Admin" | |
git config user.email "open.lyrics.database@gmail.com" | |
git add docs | |
git commit -m "update website files" | |
git push |