Rename tutorial to quickstart (#1250)

## Description

There was a missed link to tutorial in main page in https://github.com/alcionai/corso/pull/1245. Fixes that. Also enabled docs build (not push) for docs in CI as that is pretty fast anyways. Fixes `Push-Docs` job failing in `main`.

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [x] 🗺️ Documentation
- [ ] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🐹 Trivial/Minor

## Issue(s)

<!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. -->
* #<issue>

## Test Plan

<!-- How will this be tested prior to merging.-->
- [x] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
This commit is contained in:
Abin Simon 2022-10-20 21:33:07 +05:30 committed by GitHub
parent d3ea669be4
commit e3c16e1793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 9 deletions

View File

@ -198,7 +198,6 @@ jobs:
SetEnv: SetEnv:
environment: Testing environment: Testing
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
environment: ${{ steps.set-env.outputs.environment }} environment: ${{ steps.set-env.outputs.environment }}
@ -259,7 +258,7 @@ jobs:
needs: [Test-Suite, Linting, Docs-Linting, SetEnv] needs: [Test-Suite, Linting, Docs-Linting, SetEnv]
environment: ${{ needs.SetEnv.outputs.environment }} environment: ${{ needs.SetEnv.outputs.environment }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main' || needs.precheck.outputs.docfileschanged == 'true' # docsfileschanged also includes srcfileschanged
defaults: defaults:
run: run:
working-directory: docs working-directory: docs
@ -273,24 +272,27 @@ jobs:
name: cli-docs name: cli-docs
path: docs/docs/cli path: docs/docs/cli
- name: Build docs
run: |
npm ci
CORSO_DOCS_BASEURL="/preview/" npm run build # TODO: update base url once finalized
- name: Configure AWS credentials from Test account - name: Configure AWS credentials from Test account
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
uses: aws-actions/configure-aws-credentials@v1 uses: aws-actions/configure-aws-credentials@v1
with: with:
role-to-assume: ${{ secrets.AWS_IAM_ROLE }} role-to-assume: ${{ secrets.AWS_IAM_ROLE }}
role-session-name: integration-testing role-session-name: integration-testing
aws-region: us-east-1 aws-region: us-east-1
- name: Build docs
run: |
npm ci
CORSO_DOCS_BASEURL="/preview/" npm run build # TODO: update base url once finalized
- name: Push docs - name: Push docs
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
run: | run: |
echo "$DOCS_BUCKET" | base64 echo "$DOCS_BUCKET" | base64
aws s3 sync build "s3://${{ secrets.DOCS_S3_BUCKET }}/preview" aws s3 sync build "s3://${{ secrets.DOCS_S3_BUCKET }}/preview"
- name: Invalidate cloudfront - name: Invalidate cloudfront
if: startsWith(github.ref, 'refs/tags/') || github.ref == 'refs/heads/main'
run: | run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.DOCS_CF_DISTRIBUTION }} --paths "/*" aws cloudfront create-invalidation --distribution-id ${{ secrets.DOCS_CF_DISTRIBUTION }} --paths "/*"

View File

@ -16,8 +16,8 @@ function HomepageHeader() {
<div className={styles.buttons}> <div className={styles.buttons}>
<Link <Link
className="button button--secondary button--lg" className="button button--secondary button--lg"
to="tutorial"> to="quickstart">
Corso Tutorial - 5min Corso Quickstart - 5min
</Link> </Link>
</div> </div>
</div> </div>