From b6fe9abb2e62d655e756fb9d2c7e45fb8c19a95e Mon Sep 17 00:00:00 2001 From: Kazuto Kusama Date: Tue, 19 Nov 2024 14:51:10 +0900 Subject: [PATCH 1/4] Update .gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 From d98cffd0588e9cbfa09e94fe5a88bafe4082d2c4 Mon Sep 17 00:00:00 2001 From: Kazuto Kusama Date: Tue, 19 Nov 2024 14:54:17 +0900 Subject: [PATCH 2/4] Add release automation --- .github/workflows/release.yaml | 41 ++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 0000000..ac247f7 --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,41 @@ +on: + push: + paths-ignore: + - ".github/**" + - "!.github/workflows/release.yaml" + - "**.md" + branches: + - main +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 mkdocs pymdown-extensions pygments setuptools + # - 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/ From 3794c34c9744c800cbe591815711f0eb3a67b3c3 Mon Sep 17 00:00:00 2001 From: Kazuto Kusama Date: Tue, 19 Nov 2024 14:55:27 +0900 Subject: [PATCH 3/4] Fix release automation --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ac247f7..3650330 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -5,7 +5,7 @@ on: - "!.github/workflows/release.yaml" - "**.md" branches: - - main + - master name: 🚀 Deploy website on push jobs: web-deploy: From 047edb9508ff9e094bcd227e4f19a7c21a4ef3e3 Mon Sep 17 00:00:00 2001 From: Kazuto Kusama Date: Tue, 19 Nov 2024 14:57:49 +0900 Subject: [PATCH 4/4] Fix release automation --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3650330..510463a 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -26,7 +26,7 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: pip install mkdocs pymdown-extensions pygments setuptools + - run: pip install -r requirements.txt # - run: cd mkdocs-theme-pagerduty && python3 setup.py install - run: mkdocs build --clean - name: 📂 Sync files