Skip to content

Commit 890fad4

Browse files
authored
Merge pull request #2 from bcgov/workflow
Enable publishing to DevHub dev environment
2 parents c379e4a + 6496eb6 commit 890fad4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
uses: bcgov/devhub-techdocs-publish@stable
3030
id: build_and_publish
3131
with:
32-
publish: 'false' # publishing disabled initially - content will be built, but not published. repositories need to be granted access to TechDocs secrets explicitly by the DevEx team before publishing would work, so we disable to prevent the workflow from failing.
32+
publish: 'true' # publishing disabled initially - content will be built, but not published. repositories need to be granted access to TechDocs secrets explicitly by the DevEx team before publishing would work, so we disable to prevent the workflow from failing.
3333
# the parameters below can be uncommented when publishing is enabled and secrets have been exposed to the repo
34-
# production: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }} # example of only pushing to prod DevHub when changes that triggered the job are in main branch
35-
# bucket_name: ${{ secrets.TECHDOCS_S3_BUCKET_NAME }}
36-
# s3_access_key_id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }}
37-
# s3_secret_access_key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }}
38-
# s3_region: ${{ secrets.TECHDOCS_AWS_REGION }}
39-
# s3_endpoint: ${{ secrets.TECHDOCS_AWS_ENDPOINT }}
34+
production: ${{ github.ref == 'refs/heads/main' && 'true' || 'false' }} # example of only pushing to prod DevHub when changes that triggered the job are in main branch
35+
bucket_name: ${{ secrets.TECHDOCS_S3_BUCKET_NAME }}
36+
s3_access_key_id: ${{ secrets.TECHDOCS_AWS_ACCESS_KEY_ID }}
37+
s3_secret_access_key: ${{ secrets.TECHDOCS_AWS_SECRET_ACCESS_KEY }}
38+
s3_region: ${{ secrets.TECHDOCS_AWS_REGION }}
39+
s3_endpoint: ${{ secrets.TECHDOCS_AWS_ENDPOINT }}
4040

0 commit comments

Comments
 (0)