update ci

This commit is contained in:
Administrator 2023-10-07 14:00:03 +00:00
parent f81643433f
commit 7971426e94
2 changed files with 5 additions and 4 deletions

View File

@ -24,10 +24,12 @@ build-job: # This job runs in the build stage, which runs first.
stage: build
script:
- python build.py
artifacts:
paths:
- index.html
deploy-job: # This job runs in the deploy stage.
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
environment: production
script:
- echo "Deploying application..."
- echo "Application successfully deployed."
- cat index.html

View File

@ -21,8 +21,7 @@ if __name__ == '__main__':
logging.info('write file')
with open('template/template.html') as inf:
os.mkdir('public')
with open('public/index.html', 'w') as outf:
with open('index.html', 'w') as outf:
outf.write(inf.read().replace('<!--Placeholder-->',subst))
logging.info('done')