mirror of
https://codeberg.org/ProgramSnail/config.git
synced 2025-12-29 18:58:16 +00:00
41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
YAML
- name: Get latest typst version
|
|
community.general.github_release:
|
|
user: typst
|
|
repo: typst
|
|
action: latest_release
|
|
register: typst_version
|
|
|
|
- name: "Installing typst {{ typst_version.tag }}"
|
|
become: true
|
|
ansible.builtin.unarchive:
|
|
remote_src: yes
|
|
# TODO: insert v before version ??
|
|
src: "https://github.com/typst/typst/releases/download/{{ typst_version.tag }}/typst-x86_64-unknown-linux-musl.tar.xz"
|
|
dest: "/usr/bin/"
|
|
keep_newer: yes
|
|
mode: a+x
|
|
extra_opts:
|
|
- --strip=1
|
|
- --no-anchored
|
|
- typst
|
|
|
|
- name: Get latest tinymist (typst lsp) version
|
|
community.general.github_release:
|
|
user: Myriad-Dreamin
|
|
repo: tinymist
|
|
action: latest_release
|
|
register: tinymist_version
|
|
|
|
- name: "Installing tinymist (typst lsp) {{ tinymist_version.tag }}"
|
|
become: true
|
|
ansible.builtin.unarchive:
|
|
remote_src: yes
|
|
# TODO: insert v before version ??, rc ??
|
|
src: "https://github.com/Myriad-Dreamin/tinymist/releases/download/{{ tinymist_version.tag }}/tinymist-x86_64-unknown-linux-gnu.tar.gz"
|
|
dest: "/usr/bin/"
|
|
mode: a+x
|
|
keep_newer: yes
|
|
extra_opts:
|
|
- --strip=1
|
|
- --no-anchored
|
|
- tinymist
|