fix: ensure godot versions match in release nix #44
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: docs | |
on: | |
push: | |
tags: ['v*'] | |
workflow_dispatch: | |
jobs: | |
pub-docs: | |
name: Publish MkDocs | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
lfs: true | |
fetch-depth: 0 | |
fetch-tags: true | |
sparse-checkout: | | |
docs | |
nix | |
- name: Configure Git Credentials | |
run: | | |
git config user.name github-actions[bot] | |
git config user.email 41898282+github-actions[bot]@users.noreply.github.com | |
- uses: DeterminateSystems/nix-installer-action@main | |
- uses: DeterminateSystems/flakehub-cache-action@main | |
- uses: aldoborrero/direnv-nix-action@v2 | |
with: | |
use_nix_profile: true | |
- name: Clear prereleases | |
continue-on-error: true | |
run: | | |
mike list | | |
cut -d ' ' -f1 | | |
grep -vP '^v\d+\.\d+\.\d+$' | | |
xargs -n1 -d'\n' mike delete | |
- name: Deploy | |
run: | | |
TAG="$(git describe --abbrev=0 --tags)" | |
alias=$(case "$TAG" in | |
*-*) echo -n "prerelease" ;; | |
*) echo -n "latest" ;; | |
esac) | |
mike deploy --push --update-aliases "$TAG" "$alias" |