diff --git a/.github/workflows/move-images.yml b/.github/workflows/move-images.yml deleted file mode 100644 index 71ec8d7f4..000000000 --- a/.github/workflows/move-images.yml +++ /dev/null @@ -1,67 +0,0 @@ -name: Organizar imagens do Hub - -on: - push: - branches: [ "v4" ] # se estiver usando outra branch, coloca aqui também (ex: "main") - -jobs: - move-images: - if: github.actor != 'github-actions[bot]' - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Detectar e mover imagens - run: | - set -e - - BEFORE_SHA="${{ github.event.before }}" - AFTER_SHA="${{ github.sha }}" - - # Se for primeiro commit da branch, não existe "before" - if [ "$BEFORE_SHA" = "0000000000000000000000000000000000000000" ]; then - echo "Primeiro push da branch, pegando todos os arquivos trackeados." - CHANGED_FILES=$(git ls-files) - else - echo "Diff entre $BEFORE_SHA e $AFTER_SHA" - CHANGED_FILES=$(git diff --name-status "$BEFORE_SHA" "$AFTER_SHA" | awk '$1=="A" || $1=="M"{print $2}') - fi - - echo "Arquivos alterados:" - echo "$CHANGED_FILES" - - - IMAGES=$(echo "$CHANGED_FILES" | grep -Ei '^content/(?!imagens/).*\.(png|jpe?g|gif|svg)$' || true) - - if [ -z "$IMAGES" ]; then - echo "Nenhuma imagem fora de content/imagens para mover." - exit 0 - fi - - for FILE in $IMAGES; do - - REL_PATH=${FILE#content/} - - DEST_DIR="content/imagens/${REL_PATH%/*}" - BASENAME=$(basename "$FILE") - - echo "Movendo $FILE -> $DEST_DIR/$BASENAME" - mkdir -p "$DEST_DIR" - git mv "$FILE" "$DEST_DIR/$BASENAME" - done - - - name: Commit e push se houve mudança - run: | - if git diff --cached --quiet; then - echo "Nenhuma alteração para commitar." - exit 0 - fi - - git config user.name "github-actions[bot]" - git config user.email "github-actions[bot]@users.noreply.github.com" - git commit -m "chore: mover imagens para content/imagens" - git push diff --git a/content/imagens/meu_artigo/Pasted image 20251121153216.png b/content/imagens/meu_artigo/Pasted image 20251121153216.png new file mode 100644 index 000000000..bbc4fd153 Binary files /dev/null and b/content/imagens/meu_artigo/Pasted image 20251121153216.png differ diff --git a/content/meu_artigo/Bem-vindo.md b/content/meu_artigo/Bem-vindo.md new file mode 100644 index 000000000..42c3ba6ec --- /dev/null +++ b/content/meu_artigo/Bem-vindo.md @@ -0,0 +1,12 @@ +--- +tags: + - IgorPires +--- + +Este é o seu novo *Cofre*. + +Anote algo, [[crie um link]], ou tente [o Importer](https://help.obsidian.md/Plugins/Importer)! + +Quando estiver pronto, exclua esta nota e monte o cofre do seu jeito. +![[Pasted image 20251121153216.png]] +