Skip to content

Commit

Permalink
feat: add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
martyanovandrey committed Oct 16, 2023
1 parent e723d92 commit 052a4df
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
pull_request:

jobs:
build-docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: diplodoc-platform/docs-build-action@v1
with:
revision: "pr-${{ github.event.pull_request.number }}"
project-name: ${{ secrets.DIPLODOC_PROJECT_NAME }}
src-root: "./"
storage-bucket: ${{ secrets.DIPLODOC_STORAGE_BUCKET }}
storage-endpoint: ${{ vars.DIPLODOC_STORAGE_ENDPOINT }}
storage-access-key-id: ${{ secrets.DIPLODOC_ACCESS_KEY_ID }}
storage-secret-access-key: ${{ secrets.DIPLODOC_SECRET_ACCESS_KEY }}
storage-region: ${{ vars.DIPLODOC_STORAGE_REGION }}
shared-storage-bucket: "true"
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release

on:
workflow_dispatch:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Release
uses: diplodoc-platform/docs-release-action@v1
with:
revision: "${{ github.sha }}"
project-name: ${{ secrets.DIPLODOC_PROJECT_NAME }}
src-root: "./"
storage-bucket: ${{ secrets.DIPLODOC_STORAGE_BUCKET }}
storage-endpoint: ${{ vars.DIPLODOC_STORAGE_ENDPOINT }}
storage-access-key-id: ${{ secrets.DIPLODOC_ACCESS_KEY_ID }}
storage-secret-access-key: ${{ secrets.DIPLODOC_SECRET_ACCESS_KEY }}
storage-region: ${{ vars.DIPLODOC_STORAGE_REGION }}
shared-storage-bucket: "true"

0 comments on commit 052a4df

Please sign in to comment.