@@ -74,14 +74,14 @@ def build(target):
7474def ci_publish (target = None ):
7575 if not args .branch :
7676 exit ('Error: --branch <branchname> is required' )
77- shell ('aws s3 sync --only-show-errors --delete site s3://%s/ci/branches/%s' % (staging_host , args .branch ))
78- element .log ('published at http://staging.spec.oneapi.com.s3-website-us-west-2.amazonaws.com/ci/branches/%s/'
77+ shell ('aws s3 sync --only-show-errors --delete site s3://%s/exclude/ ci/branches/%s' % (staging_host , args .branch ))
78+ element .log ('published at http://staging.spec.oneapi.com.s3-website-us-west-2.amazonaws.com/exclude/ ci/branches/%s/'
7979 % (args .branch ))
8080
8181@element .action
8282def prod_publish (target = None ):
8383 # sync staging to prod
84- shell (' aws s3 sync --only-show-errors --delete s3://%s/site s3://spec.oneapi.com/' % (staging_host ))
84+ shell (" aws s3 sync --only-show-errors --delete s3://%s/ s3://spec.oneapi.com/ --exclude 'exclude/*'" % (staging_host ))
8585 element .log ('published at http://spec.oneapi.com/' )
8686
8787@element .action
@@ -90,7 +90,7 @@ def stage_publish(target=None):
9090 local_versions = join (local_top , 'versions' )
9191 local_versions_x = join (local_versions , common_conf .oneapi_spec_version )
9292 local_versions_latest = join (local_versions , 'latest' )
93- s3_top = 's3://%s/%s ' % (staging_host , local_top )
93+ s3_top = 's3://%s' % (staging_host )
9494 s3_versions = '%s/versions' % s3_top
9595 s3_versions_x = '%s/%s' % (s3_versions ,common_conf .oneapi_spec_version )
9696 s3_versions_latest = '%s/latest' % s3_versions
@@ -99,7 +99,7 @@ def stage_publish(target=None):
9999 # Do not use --delete, it will delete old versions
100100 # even with the --exclude
101101 shell (('aws s3 sync --only-show-errors'
102- ' --exclude \' site/ versions/*\' '
102+ ' --exclude \' versions/*\' '
103103 ' %s %s' )
104104 % (local_top , s3_top ))
105105 # Sync the newly created version directory
0 commit comments