Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cad1b25c03 | |||
| 88a659fb03 | |||
| b31d08c35d | |||
| 65293d0961 | |||
| f9464c9def | |||
|
|
b6df678845 |
@@ -28,9 +28,6 @@ jobs:
|
|||||||
- goos: linux
|
- goos: linux
|
||||||
goarch: arm64
|
goarch: arm64
|
||||||
ext: ''
|
ext: ''
|
||||||
- goos: windows
|
|
||||||
goarch: amd64
|
|
||||||
ext: '.exe'
|
|
||||||
- goos: darwin
|
- goos: darwin
|
||||||
goarch: amd64
|
goarch: amd64
|
||||||
ext: ''
|
ext: ''
|
||||||
@@ -92,7 +89,7 @@ jobs:
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
path: dist/*
|
path: dist/*
|
||||||
@@ -121,28 +118,36 @@ jobs:
|
|||||||
echo "tag=${VERSION}" >> $GITEA_OUTPUT
|
echo "tag=${VERSION}" >> $GITEA_OUTPUT
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: dist/
|
path: dist/
|
||||||
merge-multiple: true
|
# ← sin merge-multiple, quedan en subdirectorios:
|
||||||
|
# dist/linux-amd64/claudia-docs-linux-amd64.tar.gz
|
||||||
|
# dist/windows-amd64/claudia-docs-windows-amd64.zip
|
||||||
|
# etc.
|
||||||
|
|
||||||
- name: Generate changelog
|
- name: Mover artefactos a dist/
|
||||||
run: |
|
run: |
|
||||||
PREV_TAG=$(git tag --sort=-version:refname | sed -n '2p')
|
# Mover todos los archivos de subdirectorios a dist/
|
||||||
if [ -z "$PREV_TAG" ]; then
|
find dist/ -mindepth 2 -type f -exec mv {} dist/ \;
|
||||||
echo "# Changes (full history)" > changelog.md
|
# Borrar subdirectorios con rm -rf en vez de find -delete
|
||||||
git log --pretty=format:"- %s (%h)" -20 >> changelog.md
|
for dir in dist/*/; do
|
||||||
else
|
rm -rf "$dir"
|
||||||
echo "# Changes since ${PREV_TAG}" > changelog.md
|
done
|
||||||
git log "${PREV_TAG}..${{ steps.version.outputs.tag }}" \
|
ls -lh dist/
|
||||||
--pretty=format:"- %s (%h)" >> changelog.md
|
|
||||||
fi
|
|
||||||
cat changelog.md
|
|
||||||
|
|
||||||
- name: Generate checksums
|
- name: Generate checksums
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
sha256sum * > checksums.txt
|
sha256sum *.tar.gz > checksums.txt
|
||||||
|
# Agregar zips solo si existen
|
||||||
|
ls *.zip 2>/dev/null && sha256sum *.zip >> checksums.txt || true
|
||||||
|
cat checksums.txt
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
cd dist
|
||||||
|
sha256sum *.tar.gz *.zip > checksums.txt
|
||||||
cat checksums.txt
|
cat checksums.txt
|
||||||
|
|
||||||
- name: Generate install script
|
- name: Generate install script
|
||||||
|
|||||||
13
cmd/claudia-docs/main.go
Normal file
13
cmd/claudia-docs/main.go
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"os"
|
||||||
|
|
||||||
|
"github.com/claudia/docs-cli/cobra"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
if err := cobra.Execute(); err != nil {
|
||||||
|
os.Exit(1)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user