<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>.github/actions/github-release/README.md - fork/rust-analyzer @ 2022-07-18</title>
<meta name="description" content=".github/actions/github-release/README.md in fork/rust-analyzer at 2022-07-18.">
<meta property="og:title" content=".github/actions/github-release/README.md - fork/rust-analyzer @ 2022-07-18">
<meta property="og:description" content=".github/actions/github-release/README.md in fork/rust-analyzer at 2022-07-18.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="2022-07-18" data-tip="897a7ec4b826f85ec1626870e734490701138097">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>fork/rust-analyzer</h1>
</div>
<pre class="clone">git clone https://git.julia.blue/fork/rust-analyzer</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Aleksey Kladov</span><span class="commit-message" data-commit="8ac7a180cf8f08c8c6649c6f06709198425a58a1">Merge pull request #3456 from matklad/nighly-release</span><span class="snapshot-sha sha" data-commit="8ac7a180cf8f08c8c6649c6f06709198425a58a1">8ac7a180cf</span><time datetime="2020-03-04T17:31:41+01:00" title="2020-03-04 17:31:41 +0100">2020-03-04</time></p>
<header class="topbar"><details class="switcher"><summary>2022-07-18</summary><div class="menu"><strong>branches</strong><a href="/fork/rust-analyzer/ref/master/">master</a><strong>tags</strong><a href="/fork/rust-analyzer/ref/2022-06-13/">2022-06-13</a><a href="/fork/rust-analyzer/ref/2022-06-20/">2022-06-20</a><a href="/fork/rust-analyzer/ref/2022-06-27/">2022-06-27</a><a href="/fork/rust-analyzer/ref/2022-07-04/">2022-07-04</a><a href="/fork/rust-analyzer/ref/2022-07-11/">2022-07-11</a><a class="current" href="/fork/rust-analyzer/ref/2022-07-18/">2022-07-18</a><a href="/fork/rust-analyzer/ref/2022-07-25/">2022-07-25</a><a href="/fork/rust-analyzer/ref/nightly/">nightly</a><a class="all" href="/fork/rust-analyzer/refs">all refs →</a></div></details><nav class="crumbs"><a href="/fork/rust-analyzer/">rust-analyzer</a> / <a href="/fork/rust-analyzer/ref/2022-07-18/tree/.github/">.github</a> / <a href="/fork/rust-analyzer/ref/2022-07-18/tree/.github/actions/">actions</a> / <a href="/fork/rust-analyzer/ref/2022-07-18/tree/.github/actions/github-release/">github-release</a> / <span class="cur">README.md</span></nav>
<span class="view-stats"><span>914 B</span><span>21 lines</span></span><span class="actions"><a class="raw" href="/fork/rust-analyzer/raw/7b50d002001ee85a3fcdf0d4ac67638332b176d5/.github/actions/github-release/README.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h1>github-release</h1>
<p>Copy-pasted from
https://github.com/bytecodealliance/wasmtime/tree/8acfdbdd8aa550d1b84e0ce1e6222a6605d14e38/.github/actions/github-release</p>
<p>An action used to publish GitHub releases for <code>wasmtime</code>.</p>
<p>As of the time of this writing there's a few actions floating around which
perform github releases but they all tend to have their set of drawbacks.
Additionally nothing handles deleting releases which we need for our rolling
<code>dev</code> release.</p>
<p>To handle all this this action rolls-its-own implementation using the
actions/toolkit repository and packages published there. These run in a Docker
container and take various inputs to orchestrate the release from the build.</p>
<p>More comments can be found in <code>main.js</code>.</p>
<p>Testing this is really hard. If you want to try though run <code>npm install</code> and
then <code>node main.js</code>. You'll have to configure a bunch of env vars though to get
anything reasonably working.</p>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>#</a-p> <a-tt>github-release</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text">Copy-pasted from</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text">https://github.com/bytecodealliance/wasmtime/tree/8acfdbdd8aa550d1b84e0ce1e6222a6605d14e38/.github/actions/github-release</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text">An action used to publish GitHub releases for `wasmtime`.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text">As of the time of this writing there&#39;s a few actions floating around which</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text">perform github releases but they all tend to have their set of drawbacks.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text">Additionally nothing handles deleting releases which we need for our rolling</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text">`dev` release.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text">To handle all this this action rolls-its-own implementation using the</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text">actions/toolkit repository and packages published there. These run in a Docker</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text">container and take various inputs to orchestrate the release from the build.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text">More comments can be found in `main.js`.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text">Testing this is really hard. If you want to try though run `npm install` and</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text">then `node main.js`. You&#39;ll have to configure a bunch of env vars though to get</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text">anything reasonably working.</span></span></pre></div></div>
</main>
</body>
</html>
