Skip to content

Commit

Permalink
chore: removed GitHub pages deployment (#2780)
Browse files Browse the repository at this point in the history
* chore: removed base url from vitepress config

* chore: removed GitHub pages deployment on release

* chore: changeset

* chore: rebuild
  • Loading branch information
petertonysmith94 committed Jul 18, 2024
1 parent 25587d4 commit 46e1bda
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 19 deletions.
4 changes: 4 additions & 0 deletions .changeset/sweet-schools-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

chore: removed GitHub pages deployment
20 changes: 2 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
name: "Release"
runs-on: ubuntu-latest
permissions: write-all
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Ensure that the workflow runs only after a commit is pushed into the branch
# and not when the branch is created.
# This is to avoid running the workflow when a release/* branch is created.
Expand Down Expand Up @@ -125,21 +122,6 @@ jobs:
if: startsWith(env.LAST_COMMIT_MSG, 'ci(changesets):') && env.RELEASE_VERSION_HIGHER_THAN_LATEST == 'true'
run: echo SHOULD_DEPLOY_DOCS=true >> $GITHUB_ENV

- name: Configure GitHub Pages
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/configure-pages@v5

- name: Upload Docs Artifact
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/upload-pages-artifact@v3
with:
path: apps/docs/dist

- name: Deploy Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
id: deployment
uses: actions/deploy-pages@v4

- name: Checkout API Docs
if: env.SHOULD_DEPLOY_DOCS == 'true'
uses: actions/checkout@v4
Expand Down Expand Up @@ -206,12 +188,14 @@ jobs:
arch: amd64
rootdir: ""
workdir: ""

- uses: aws-actions/configure-aws-credentials@v4
if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true'
with:
aws-access-key-id: ${{ secrets.S3_CDN_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.S3_CDN_SECRET_KEY }}
aws-region: us-east-1

- name: Upload assets to s3
if: github.ref_name == 'master' && steps.changesets.outputs.published != 'true'
run: |
Expand Down
1 change: 0 additions & 1 deletion apps/docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import apiLinks from '../.typedoc/api-links.json';
export default defineConfig({
title: 'Fuels-ts',
description: 'Fuel Typescript SDK',
base: '/fuels-ts/',
srcDir: 'src',
outDir: 'dist',
lang: 'en-US',
Expand Down

0 comments on commit 46e1bda

Please sign in to comment.