Optimize map and deploy #2620
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: Optimize map and deploy | |
on: | |
schedule: | |
- cron: "1 6 * * *" # 7:01 German time | |
- cron: "1 17 * * *" #18:01 German time | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Optimize map | |
uses: thecodingmachine/map-optimizer-action@master | |
- name: Bash | |
run: | | |
ls -al | |
git checkout master | |
git config --global user.email "$(git log HEAD --pretty=format:'%ae')" | |
git config --global user.name "$(git log -1 --pretty=format:'%an')" | |
deploy/setAudioStream.sh | |
cp main.json bc.json | |
rm -rfv ./deploy/ | |
git commit -am "Adding files" | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@releases/v3 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: . # The folder the action should deploy. | |
BASE_BRANCH: master | |
- name: Bash2 | |
run: | | |
ls -al |