cargo/.github
David Rheinsberg 1d261830a0 ci/contrib: do not fail on missing gh-pages
The current contrib deploy-hook fails if there is no `gh-pages` branch.
Change the CI order to disregard the old `gh-pages` branch first.

The `contrib` deploy-hook always creates a fresh `gh-pages` commit and
pushes it out. However, currently it relies on the old `gh-pages` branch
to exist, since it does not ignore errors when pruning it. Fortunately,
the code always creates a new orphan branch, since it does not want to
keep history for deployments. Therefore, we can simply use:

    `git worktree --orphan -B <branch> <path>`

This will ensure to always create an orphan branch named `<branch>`, and
override an existing branch if it exists (see `-b` vs `-B`). Hence,
there is no need for us to prune the old branch, anymore.

Since we will recreate the branch on every push, we have to explicitly
specify the remote to push to. We no longer set up branch tracking.
2023-10-17 14:28:23 +02:00
..
ISSUE_TEMPLATE Add S-triage auto-label. 2023-04-18 11:36:30 -07:00
workflows ci/contrib: do not fail on missing gh-pages 2023-10-17 14:28:23 +02:00
PULL_REQUEST_TEMPLATE.md Add a notice about review capacity. 2022-03-24 14:18:42 -07:00
renovate.json5 chore(gh): Automatically update cargo-credential MSRV 2023-10-06 16:34:42 -05:00