Skip to content

Commit

Permalink
wf fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lord-vesel committed Nov 10, 2024
1 parent a4f64e7 commit d6331e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/local-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
build:
env:
DEPLOY_USER: gh-dcs-deploy
DEPLOY_HOST: lordvesel.win
RELEASE_DIR: /var/www/dcs-docs/prod/releases/${{ github.ref }}/${{ github.run_number }}
RELEASES_DIR: /var/www/dcs-docs/prod/releases/
CURRENT_DIR: /var/www/dcs-docs/prod/current
Expand All @@ -35,7 +33,7 @@ jobs:
- name: Build mkdocs
run: |
docker run -i --rm -e CI -e COMMITERS_TOKEN=${{secrets.COMMITERS_TOKEN}} -e GOOGLE_ANAL=${{secrets.GOOGLE_ANAL}} -v $PWD:/build -w /build python:3.10-alpine sh -c 'apk add git gcc linux-headers musl-dev && \
podman run -i --rm -e CI -e COMMITERS_TOKEN=${{secrets.COMMITERS_TOKEN}} -e GOOGLE_ANAL=${{secrets.GOOGLE_ANAL}} -v $PWD:/build -w /build python:3.10-alpine sh -c 'apk add git gcc linux-headers musl-dev && \
git config --global --add safe.directory /build && \
cd ru && pip install -r requirements.txt && \
mkdocs build && \
Expand All @@ -61,8 +59,8 @@ jobs:
run: |
ntfy -b telegram send "⚡ GITHUB: Successfuly deployed PROD. Check out
https://dcs-docs.lordvesel.win/ru/
https://dcs-docs.lordvesel.win/en/"
https://dcs.man-sim.org/ru/
https://dcs.man-sim.org/en/"
- name: Status Fail Notification
if: ${{ failure() }}
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/local-stage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
jobs:
build:
env:
DEPLOY_USER: gh-dcs-deploy
DEPLOY_HOST: lordvesel.win
RELEASE_DIR: /var/www/dcs-docs/stage/releases/${{ github.run_number }}
RELEASES_DIR: /var/www/dcs-docs/stage/releases/
CURRENT_DIR: /var/www/dcs-docs/stage/current
Expand Down Expand Up @@ -37,7 +35,7 @@ jobs:
- name: Build mkdocs
run: |
docker run -i --rm -v $PWD:/build -w /build python:3.11-alpine sh -c 'apk add \
podman run -i --rm -v $PWD:/build -w /build python:3.11-alpine sh -c 'apk add \
git gcc linux-headers musl-dev && \
git config --global --add safe.directory /build && \
cd ru && pip install -r requirements.txt && \
Expand All @@ -64,8 +62,8 @@ jobs:
run: |
ntfy -b telegram send "⚡ DCS DOCS: Successfuly deployed STAGE ${{env.PRURL}}
https://dcs-docs-stage.lordvesel.win/ru/
https://dcs-docs-stage.lordvesel.win/en/"
https://dcs-docs-stage.man-sim.org/ru/
https://dcs-docs-stage.man-sim.org/en/"
- name: Status Fail Notification
if: ${{ failure() }}
Expand Down

0 comments on commit d6331e4

Please sign in to comment.