diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..510463a --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,41 @@ +on: + push: + paths-ignore: + - ".github/**" + - "!.github/workflows/release.yaml" + - "**.md" + branches: + - master +name: 🚀 Deploy website on push +jobs: + web-deploy: + name: 🎉 Deploy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + submodules: true + - uses: actions/setup-python@v5 + with: + python-version: 3.x + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + - uses: actions/cache@v4 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + - run: pip install -r requirements.txt + # - run: cd mkdocs-theme-pagerduty && python3 setup.py install + - run: mkdocs build --clean + - name: 📂 Sync files + uses: SamKirkland/FTP-Deploy-Action@v4.3.5 + with: + server: ${{ secrets.FTPS_SERVER }} + username: ${{ secrets.FTPS_USERNAME }} + password: ${{ secrets.FTPS_PASSWORD }} + protocol: ftps + port: 21 + local-dir: site/ + server-dir: ops-guides/response/ diff --git a/.gitignore b/.gitignore index 45ddf0a..4d0e2d5 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,4 @@ -site/ +.DS_Store +**/.DS_Store +.venv +site \ No newline at end of file