Skip to content

Deployment in gh-pages cannot display 404 normally #7015

Answered by kamilkrzyskow
W1ndys asked this question in Q&A
Discussion options

You must be logged in to vote

On the screenshot it says that the variables are available in the vars context.
https://docs.github.com/en/actions/learn-github-actions/contexts#example-usage-of-the-vars-context

In the example it shows that you have to set the env with the vars variable:

env:
  # Setting an environment variable with the value of a configuration variable
  SITE_URL: ${{ vars.SITE_URL }}

the key in the env corresponds to the name used in the mkdocs.yml file.

As for the other platform I don't know. You can debug it with a script.
The !ENV uses the provided key to access it in the os.environ object.
https://github.com/waylan/pyyaml-env-tag/blob/fdadeb7c859f43c6842bfb743943bfa77fa66f46/yaml_env_tag.py#L31

The…

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@W1ndys
Comment options

@kamilkrzyskow
Comment options

Answer selected by W1ndys
Comment options

You must be logged in to vote
3 replies
@W1ndys
Comment options

@kamilkrzyskow
Comment options

@W1ndys
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants