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
52 changes: 1 addition & 51 deletions .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,63 +316,13 @@ jobs:
tar cf fusion-engine-client-docs.tar docs/html --transform 's|^docs/html|fusion-engine-client/docs/html|'
tar rf fusion-engine-client-docs.tar docs/xml --transform 's|^docs/xml|fusion-engine-client/docs/xml|'
gzip fusion-engine-client-docs.tar
tar czf version-docs.tar.gz docs/include_header.js docs/versions.html

- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: fusion-engine-client-docs.tar.gz
path: fusion-engine-client-docs.tar.gz

- name: Upload Versioned Files
uses: actions/upload-artifact@v4
with:
name: version-docs.tar.gz
path: version-docs.tar.gz

# Upload release (v*) or master documentation to S3.
upload_doxygen:
name: Upload Documentation
if: startsWith(github.ref, 'refs/tags/') || endsWith(github.ref, '/master')
needs: [build_doxygen]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1

- name: Extract Tag Name
run: |
echo "GIT_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
echo "Setting tag to: ${GIT_TAG}"

- name: Get Documentation Artifact
uses: actions/download-artifact@v4
with:
name: fusion-engine-client-docs.tar.gz

- name: Get Versioned Files
uses: actions/download-artifact@v4
with:
name: version-docs.tar.gz

- name: Upload Documentation To Web (S3)
run: |
tar xvzf fusion-engine-client-docs.tar.gz --strip-components=1
tar xvzf version-docs.tar.gz
aws s3 sync --delete --acl public-read docs/html s3://docs.pointonenav.com/fusion-engine/${GIT_TAG}
aws s3 cp --acl public-read docs/include_header.js s3://docs.pointonenav.com/fusion-engine/
aws s3 cp --acl public-read docs/versions.html s3://docs.pointonenav.com/fusion-engine/
aws s3 cp --acl public-read docs/index.html s3://docs.pointonenav.com/fusion-engine/
aws s3 cp --acl public-read docs/error.html s3://docs.pointonenav.com/fusion-engine/
aws s3 cp --acl public-read docs/favicon.ico s3://docs.pointonenav.com/fusion-engine/
aws s3 cp --acl public-read docs/point_one_logo.png s3://docs.pointonenav.com/fusion-engine/

# Run Python unit tests.
test_python:
name: Python Unit Tests
Expand Down Expand Up @@ -436,7 +386,7 @@ jobs:
release:
name: Create Release
if: startsWith(github.ref, 'refs/tags/')
needs: [check_style, build_bazel, build_cmake, build_doxygen, upload_doxygen, test_python]
needs: [check_style, build_bazel, build_cmake, build_doxygen, test_python]
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
Expand Down
Loading