Skip to content

Commit bd341d5

Browse files
committed
Sanitize docs, example, pypi, release and test
1 parent 55901ed commit bd341d5

File tree

5 files changed

+41
-36
lines changed

5 files changed

+41
-36
lines changed

.github/workflows/_docs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,12 @@ jobs:
4444
run: python .github/pages/make_switcher.py --add $DOCS_VERSION ${{ github.repository }} .github/pages/switcher.json
4545

4646
- name: Publish Docs to gh-pages
47-
if: github.ref_type == 'tag' || github.ref_name == 'main'
48-
# We pin to the SHA, not the tag, for security reasons.
49-
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
50-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
51-
with:
52-
github_token: ${{ secrets.GITHUB_TOKEN }}
53-
publish_dir: .github/pages
54-
keep_files: true
47+
# if: github.ref_type == 'tag' || github.ref_name == 'main'
48+
# # We pin to the SHA, not the tag, for security reasons.
49+
# # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
50+
# uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
51+
# with:
52+
# github_token: ${{ secrets.GITHUB_TOKEN }}
53+
# publish_dir: .github/pages
54+
# keep_files: true
55+
run: echo Publishing docs to gh-pages

.github/workflows/_example.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ jobs:
2323
sed -i 's|_src_path: .|_src_path: gh:DiamondLightSource/python-copier-template|' example/.copier-answers.yml
2424
2525
- name: Publish example
26-
# We pin to the SHA, not the tag, for security reasons.
27-
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
28-
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
29-
with:
30-
deploy_key: ${{ secrets.EXAMPLE_DEPLOY_KEY }}
31-
publish_dir: example
32-
external_repository: DiamondLightSource/python-copier-template-example
33-
publish_branch: main
34-
enable_jekyll: true # don't put a .nojekyll
35-
exclude_assets: '' # default would exclude .github
26+
# # We pin to the SHA, not the tag, for security reasons.
27+
# # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
28+
# uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4.0.0
29+
# with:
30+
# deploy_key: ${{ secrets.EXAMPLE_DEPLOY_KEY }}
31+
# publish_dir: example
32+
# external_repository: DiamondLightSource/python-copier-template-example
33+
# publish_branch: main
34+
# enable_jekyll: true # don't put a .nojekyll
35+
# exclude_assets: '' # default would exclude .github
36+
run: echo Publishing example

.github/workflows/_pypi.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
path: dist
1515

1616
- name: Publish to PyPI using trusted publishing
17-
uses: pypa/gh-action-pypi-publish@release/v1
18-
with:
19-
attestations: false
17+
# uses: pypa/gh-action-pypi-publish@release/v1
18+
# with:
19+
# attestations: false
20+
run: echo Publishing to PyPI

.github/workflows/_release.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,13 @@ jobs:
2121
fi
2222
2323
- name: Create GitHub Release
24-
# We pin to the SHA, not the tag, for security reasons.
25-
# https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
26-
uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
27-
with:
28-
prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
29-
files: "*"
30-
generate_release_notes: true
31-
env:
32-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
# # We pin to the SHA, not the tag, for security reasons.
25+
# # https://docs.github.com/en/actions/learn-github-actions/security-hardening-for-github-actions#using-third-party-actions
26+
# uses: softprops/action-gh-release@7b4da11513bf3f43f9999e90eabced41ab8bb048 # v2.2.0
27+
# with:
28+
# prerelease: ${{ contains(github.ref_name, 'a') || contains(github.ref_name, 'b') || contains(github.ref_name, 'rc') }}
29+
# files: "*"
30+
# generate_release_notes: true
31+
# env:
32+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: echo Creating GitHub Release

.github/workflows/_test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ jobs:
5454
run: tox -e tests
5555

5656
- name: Upload coverage to Codecov
57-
uses: codecov/codecov-action@v5
58-
with:
59-
name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
60-
files: cov.xml
61-
env:
62-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
57+
# uses: codecov/codecov-action@v5
58+
# with:
59+
# name: ${{ inputs.python-version }}/${{ inputs.runs-on }}
60+
# files: cov.xml
61+
# env:
62+
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
63+
run: echo Uploading coverage to Codecov

0 commit comments

Comments
 (0)