Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions .github/workflows/publish-main.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
name: publish-release
on:
push:
# tags:
# - '**'
branches:
- 'next'
paths:
- '.github/workflows/publish-main.yml'
tags:
- '**'

workflow_dispatch:

Expand Down Expand Up @@ -56,15 +52,15 @@ jobs:
- name: Build docs
run: |
echo "Building docs $VERSION"
# mkdir out
# make MP_UPDATE_VERSION="$VERSION" OUTDIR=out SPHINXBUILD=sphinx-build html
mkdir out
make MP_UPDATE_VERSION="$VERSION" OUTDIR=out SPHINXBUILD=sphinx-build html

# - name: prepare docs for upload and publish docs
# run: |
# mv out/html out/$VERSION
# cd out
# tar -czf offline-docs.tgz $VERSION/
# mv offline-docs.tgz $VERSION/
# echo $BUCKET_CREDS > secret
# echo -e "secret\nY\nosf-prod\nN\n" | gsutil config -e
# gsutil -m rsync -d -r dev gs://docs.foundries.io/$VERSION
- name: prepare docs for upload and publish docs
run: |
mv out/html out/$VERSION
cd out
tar -czf offline-docs.tgz $VERSION/
mv offline-docs.tgz $VERSION/
echo $BUCKET_CREDS > secret
echo -e "secret\nY\nosf-prod\nN\n" | gsutil config -e
gsutil -m rsync -d -r dev gs://docs.foundries.io/$VERSION
Loading