Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Asc Public Docs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
aflab
astrogeology
Asc Public Docs
Commits
5c6441d5
Unverified
Commit
5c6441d5
authored
1 year ago
by
Kelvin Rodriguez
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
Added s3 upload step (#6)
parent
00ea9757
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.github/workflows/aws_doc_deploy.yml
+38
-0
38 additions, 0 deletions
.github/workflows/aws_doc_deploy.yml
with
38 additions
and
0 deletions
.github/workflows/aws_doc_deploy.yml
0 → 100644
+
38
−
0
View file @
5c6441d5
name
:
aws-doc-deploy
on
:
workflow_run
:
workflows
:
[
"
Pull-Request-CI"
]
branches
:
[
main
]
types
:
-
completed
jobs
:
deploy
:
if
:
${{ github.event.workflow_run.conclusion == 'success' }}
runs-on
:
ubuntu-latest
defaults
:
run
:
shell
:
bash -el {0}
steps
:
-
uses
:
actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9
-
uses
:
actions/setup-python@v4
with
:
python-version
:
'
3.10'
-
name
:
Install Python Packages
run
:
|
pip install -r requirements.txt
-
name
:
Build Website
run
:
|
mkdocs build
-
name
:
Set AWS credentials for upload
uses
:
aws-actions/configure-aws-credentials@0e613a0980cbf65ed5b322eb7a1e075d28913a83
with
:
aws-access-key-id
:
${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key
:
${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region
:
us-west-2
-
name
:
Upload to S3
working-directory
:
docs
run
:
aws s3 sync site/ s3://${S3_BUCKET_NAME}/${S3_BUCKET_SUBDIR} --delete
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment