Skip to content

Commit

Permalink
Обновлена документация
Browse files Browse the repository at this point in the history
GH Actions
  • Loading branch information
alkoleft committed Feb 21, 2024
1 parent bf5802b commit c62e6d7
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 2 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/publish-documentation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Publish documentation
on:
workflow_dispatch:
push:
branches:
- master
- develop
paths:
- 'docs/**'
- 'README.md'
- '.github/workflows/publish-documentation.yaml'
jobs:
publish:
name: Publish documentation to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Get latest GitHub Pages
run: |
wget https://github.com/${{ github.repository }}/archive/gh-pages.zip
unzip gh-pages.zip
mkdir public -p
cp -R ${GITHUB_REPOSITORY#*/}-gh-pages/. public
- name: Copy master documentation
if: github.ref == 'refs/heads/master'
run: |
cp README.md public/
cp -R docs public/
- name: Copy develop documentation
if: github.ref == 'refs/heads/develop'
run: |
mkdir public/dev -p
cp README.md public/dev/
cp -R docs public/dev/
- name: Deploy
uses: peaceiris/[email protected]
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./public
enable_jekyll: true
66 changes: 66 additions & 0 deletions .github/workflows/publish-update-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Publish update-site
on:
workflow_dispatch:
push:
branches:
- master
- develop
paths:
- "core/**"
- "ui/**"
- "templates/eclipse_project/**"
- ".github/workflows/publish-update-site.yaml"
jobs:
publish:
name: Publish update-site to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup JDK
uses: actions/setup-java@v3
with:
java-version: "11"
distribution: "liberica"
java-package: jdk+fx # нужен FX
architecture: x64
cache: "maven"
server-id: dt_repository # реджестри пакетов 1С
server-username: ${{ secrets.MAVEN_USERNAME }} # храниться в секретах
server-password: ${{ secrets.MAVEN_CENTRAL_TOKEN }} # храниться в секретах в открытом виде

- name: Get latest GitHub Pages
run: |
wget https://github.com/${{ github.repository }}/archive/gh-pages.zip
unzip gh-pages.zip
mkdir public -p
cp -R ${GITHUB_REPOSITORY#*/}-gh-pages/. public
- name: Build master update site
if: github.ref == 'refs/heads/master'
run: |
export publication_location=../../../public/repository
export MAVEN_OPTS=
./gradlew download-lombok-plugin
export MAVEN_OPTS=-javaagent:target/lombok.jar=ECJ
./gradlew publishPlugin
- name: Build develop update site
if: github.ref == 'refs/heads/develop'
run: |
export publication_location=../../../public/dev/repository
export site_label_suffix='DEV. '
export MAVEN_OPTS=
./gradlew download-lombok-plugin
export MAVEN_OPTS=-javaagent:target/lombok.jar=ECJ
./gradlew publishPlugin
- name: Deploy
uses: peaceiris/[email protected]
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./public
enable_jekyll: true
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
Добавляет новый тип запускатора 1С:Предприятия

![Команда запуска](docs/images/launch-configuration.png)
![Команда запуска](docs/images/shortcut.png)

Работает с оффлайн версией EDT 2021.3+

Expand All @@ -26,7 +25,7 @@
5. Для ускорения установки можно убрать галочку `Обращаться во время инсталляции ко всем сайтам ...` (внизу)
6. `Далее`
7. После необходимо ознакомиться и принять лицензионной соглашение.
8. И согласиться с предупреждением безопасности.
8. И довериться неподписанному коду.

![Соглашаемся с предупреждением безопасности](docs/images/confirm-warning.png)
9. Перезагрузить IDE
Expand Down
Binary file modified docs/images/confirm-warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/release-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/select-plugin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/select-repository.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/images/shortcut.png
Binary file not shown.

0 comments on commit c62e6d7

Please sign in to comment.