Skip to content

Commit

Permalink
delete docs build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasJenicek committed Oct 31, 2024
1 parent 8c4e47a commit edeb95f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 52 deletions.
36 changes: 27 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Build Documentation and Push to Build

on:
pull_request:
push:
branches:
- master
Expand All @@ -23,6 +24,23 @@ jobs:
- name: Build
run: pnpm run build

- name: setup-go
uses: actions/setup-go@v5
with:
go-version: "1.22.5"

- name: Update openapi docs
run: |
# Read the changed files from the previous step
go mod init github.com/0xsequence/docs
go get github.com/mikefarah/yq/v4@latest
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/api/api.gen.yaml
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/analytics/analytics.gen.yaml
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/marketplace/marketplace.gen.yaml
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}, {"BearerAuth":[]}]' docs/pages/api/metadata/metadata.gen.yaml
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/indexer/indexer.gen.yaml
go run github.com/mikefarah/yq/v4 -e -i '.security=[{"ApiKeyAuth":[]}]' docs/pages/api/relayer/relayer.gen.yaml
- name: Touch .nojeykll
run: touch ./docs/dist/.nojekyll

Expand All @@ -32,12 +50,12 @@ jobs:
- name: Copy 404
run: cp 404.html ./docs/dist/404.html

- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
GIT_CLONE_PROTECTION_ACTIVE: false
BRANCH: build
FOLDER: ./docs/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"
# - name: Push
# uses: s0/git-publish-subdir-action@develop
# env:
# REPO: self
# GIT_CLONE_PROTECTION_ACTIVE: false
# BRANCH: build
# FOLDER: ./docs/dist
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# MESSAGE: "Build: ({sha}) {msg}"
43 changes: 0 additions & 43 deletions .github/workflows/scheme.yml

This file was deleted.

0 comments on commit edeb95f

Please sign in to comment.