PWA shenanigans #113
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
on: | |
push: | |
branches: | |
- dev | |
jobs: | |
deploy_to_dev: | |
name: Deploy to dev environment | |
if: ${{ github.ref == 'refs/heads/dev' }} | |
runs-on: stibarc-beta-dev | |
steps: | |
- name: Delete old repository folder | |
run: rm -rf stibarc_web_2023 | |
- name: Checkout repository | |
run: git clone --branch dev [email protected]:STiBaRC/stibarc_web_2023.git | |
- name: Delete old web folder | |
run: rm -rf /var/www | |
- name: Make new web folder | |
run: mkdir /var/www | |
- name: Copy files to web folder | |
run: cp -r stibarc_web_2023/* /var/www |