mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-14 11:33:51 +01:00
80 lines
2.5 KiB
HTML
80 lines
2.5 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
{{ _("How do you want to create releases?") }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<a class="btn btn-secondary float-right" href="{{ package.getURL("packages.view") }}">
|
|
{{ _("Later") }}
|
|
</a>
|
|
<h1>{{ self.title() }}</h1>
|
|
|
|
<p>
|
|
{{ _("A release is a single downloadable version of your %(title)s.", title=package.type.text.lower()) }}
|
|
{{ _("You need to create releases even if you use a rolling release development cycle, as Minetest needs them to check for updates.") }}
|
|
</p>
|
|
|
|
{% if package.repo %}
|
|
<p>
|
|
{{ _("When you push a change to your Git repository, ContentDB can create a new release automatically or send you a reminder.") }}
|
|
{{ _("ContentDB will check your Git repository every day, but you can use webhooks or the API for faster updates.") }}
|
|
</p>
|
|
|
|
<p>
|
|
{{ _("This can be changed later.") }}
|
|
</p>
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-6 mt-5">
|
|
<h3 class="mt-0">{{ _("Automatically (Recommended)") }}</h3>
|
|
<p>
|
|
<a class="btn btn-primary" href="{{ package.getURL("packages.update_config", trigger="commit") }}">
|
|
{{ _("Rolling Release") }}
|
|
</a>
|
|
<a class="btn btn-primary ml-2" href="{{ package.getURL("packages.update_config", trigger="tag") }}">
|
|
{{ _("On Git Tag") }}
|
|
</a>
|
|
{# <a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.update_config") }}">#}
|
|
{# {{ _("Advanced") }}#}
|
|
{# </a>#}
|
|
</p>
|
|
</div>
|
|
|
|
<div class="col-md-6 mt-5">
|
|
<h3 class="mt-0">{{ _("Manually") }}</h3>
|
|
<p>
|
|
<a class="btn btn-secondary" href="{{ package.getURL("packages.update_config", action="notification") }}">
|
|
{{ _("With reminders") }}
|
|
</a>
|
|
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.create_release") }}">
|
|
{{ _("No reminders") }}
|
|
</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<p>
|
|
{{ _("Using Git would allow you to create releases automatically when you push code or tags.") }}
|
|
{{ _("Unfortunately, you will otherwise need to create a release manually.") }}
|
|
</p>
|
|
|
|
<p>
|
|
{{ _("This can be changed later.") }}
|
|
</p>
|
|
|
|
<p class="mt-5">
|
|
<a class="btn btn-primary" href="{{ package.getURL("packages.create_edit") }}">
|
|
{{ _("Add Git repo") }}
|
|
</a>
|
|
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.create_release") }}">
|
|
{{ _("Create releases manually") }}
|
|
</a>
|
|
<a class="btn btn-secondary ml-2" href="{{ package.getURL("packages.view") }}">
|
|
{{ _("Later") }}
|
|
</a>
|
|
</p>
|
|
{% endif %}
|
|
{% endblock %}
|