Skip to content

7 enable automated publishing to gh pages#8

Merged
pnpavlov merged 5 commits intomainfrom
7-enable-automated-publishing-to-gh-pages
Sep 16, 2025
Merged

7 enable automated publishing to gh pages#8
pnpavlov merged 5 commits intomainfrom
7-enable-automated-publishing-to-gh-pages

Conversation

@pnpavlov
Copy link
Member

What this PR does / why we need it:
Fixes errors related to node.js, yarn and file paths in the publishing workflow.

Which issue(s) this PR fixes:
Fixes #7

Special notes for your reviewer:

Release note:

NONE

@pnpavlov pnpavlov linked an issue Sep 16, 2025 that may be closed by this pull request
@pnpavlov
Copy link
Member Author

@yeoldegrove @fwilhe , could one of you please review and approve? Workflow runs now up to the point it fails as desired, because of branch protection (see https://github.com/gardenlinux/website/actions/runs/17759892815)?

Copy link

@yeoldegrove yeoldegrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Having commits pinned down for actions is a best practice we follow in our other repos.
  • Could we rename the branch to main?

# using the `master` branch as the default branch.
push:
branches: [main]
branches: [master]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we rename this to main like it is the default for newly created repos?
We can also merge this already with main and simply rename the branch directly after that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

steps:
# Check out the branch
- name: Checkout
uses: actions/checkout@v4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please pin 08c6903cd8c0fde910a37f88322edcfb5dd907a8

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

run: corepack enable
# Setup Node.js with yarn support
- name: Setup Node
uses: actions/setup-node@v4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please pin a0853c24544627f65ddf259abe73b1d18a591444

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

cache: yarn # npm / pnpm / yarn
# Configure GitHub Pages
- name: Setup Pages
uses: actions/configure-pages@v5

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please pin 983d7736d9b0ae728b81ab479565c72886d7745b

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# Upload the artefact to GitHub Pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use 7b1f4a764d45c48632c6b24a0339c27f5614fb0b instead of v4 to pin to commits

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

# Deployment job
deploy:
# Execute deployment only from master branch
if: github.ref == 'refs/heads/master'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same comment about main renaming.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@pnpavlov
Copy link
Member Author

pnpavlov commented Sep 16, 2025

  • Having commits pinned down for actions is a best practice we follow in our other repos.
  • Could we rename the branch to main?

Thanks! Done with dc9274c and tested with https://github.com/gardenlinux/website/actions/runs/17761718308

Can you please review?

@pnpavlov pnpavlov merged commit fd8d631 into main Sep 16, 2025
4 checks passed
@pnpavlov pnpavlov deleted the 7-enable-automated-publishing-to-gh-pages branch September 16, 2025 09:53
@pnpavlov pnpavlov self-assigned this Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable automated publishing to GH Pages

2 participants