tinymist::announce #1
This file contains 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
name: tinymist::announce | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tag: | ||
description: Release Tag | ||
required: true | ||
type: string | ||
jobs: | ||
build: | ||
runs-on: "ubuntu-20.04" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Install dist | ||
# we specify bash to get pipefail; it guards against the `curl` command | ||
# failing. otherwise `sh` won't catch that `curl` returned non-0 | ||
shell: bash | ||
run: "curl --proto '=https' --tlsv1.2 -LsSf https://github.com/Myriad-Dreamin/cargo-dist/releases/download/v0.26.1-tinymist.6/cargo-dist-installer.sh | sh" | ||
- name: Cache dist | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: cargo-dist-cache | ||
path: ~/.cargo/bin/dist | ||
- name: Install parse changelog | ||
uses: taiki-e/install-action@parse-changelog | ||
- name: Install Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
- name: Install deps | ||
run: yarn install | ||
- id: Generate Announcement | ||
Check failure on line 36 in .github/workflows/gen-announcement.yml GitHub Actions / tinymist::announceInvalid workflow file
|
||
run: | | ||
yarn draft-release ${{ inputs.tag }} | ||
echo "draft-release ran successfully" | ||
- name: "Upload announcement changelog" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: announcement-changelog.md | ||
path: target/announcement-changelog.md | ||
- name: "Upload announcement" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: announcement-dist.md | ||
path: target/announcement-dist.md | ||
- name: "Upload announcement" | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: announcement.gen.md | ||
path: target/announcement.gen.md |