initial commit

This commit is contained in:
aminnairi
2024-11-30 18:47:35 +01:00
parent ae62a2b936
commit fd5782042f
@@ -0,0 +1,29 @@
---
- name: Clone the repository
ansible.builtin.git:
repo: https://github.com/aminnairi/markdown-table-align
dest: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align
register: git_clone_result
- name: Install Deno
pacman:
name: deno
state: latest
- name: Compile the binary
ansible.builtin.command:
chdir: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align
run: deno compile index.ts
when: git_clone_result.changed
- name: Copy the binary
ansible.builtin.copy:
src: /$HOME/Documents/git/github.com/aminnairi/markdown-table-align/markdown-table-align
dest: /$HOME/.local/bin
when: git_clone_result.changed
- name: Remove the binary
ansible.builtin.file:
path: /$HOME/Document/git/github.com/aminnairi/markdown-table-align/markdown-table-align
state: absent
when: git_clone_result.changed