mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 12:12:13 +02:00
initial commit
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user