π update assets #258
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: π build and deploy | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.8] | |
steps: | |
- name: π Checkout Repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: π Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: π Install dependencies | |
run: | | |
sudo apt install dos2unix | |
python -m pip install --upgrade pip | |
pip install requests colorama rcssmin rjsmin | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: π Run Build | |
run: python build/build.py | |
- name: β³ Deploy Changes | |
env: | |
INPUT_BRANCH: "production" | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
dos2unix build/deploy.sh | |
sudo chmod a+x build/deploy.sh | |
build/deploy.sh |