Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b31d08c35d | |||
| 65293d0961 | |||
| f9464c9def | |||
|
|
b6df678845 |
@@ -28,9 +28,6 @@ jobs:
|
||||
- goos: linux
|
||||
goarch: arm64
|
||||
ext: ''
|
||||
- goos: windows
|
||||
goarch: amd64
|
||||
ext: '.exe'
|
||||
- goos: darwin
|
||||
goarch: amd64
|
||||
ext: ''
|
||||
@@ -92,7 +89,7 @@ jobs:
|
||||
esac
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: ${{ matrix.goos }}-${{ matrix.goarch }}
|
||||
path: dist/*
|
||||
@@ -121,10 +118,22 @@ jobs:
|
||||
echo "tag=${VERSION}" >> $GITEA_OUTPUT
|
||||
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
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: Mover artefactos a dist/
|
||||
run: |
|
||||
find dist/ -mindepth 2 -type f \
|
||||
\( -name "*.tar.gz" -o -name "*.zip" \) \
|
||||
-exec mv {} dist/ \;
|
||||
# Eliminar subdirectorios vacíos
|
||||
find dist/ -mindepth 1 -type d -delete
|
||||
ls -lh dist/
|
||||
|
||||
- name: Generate changelog
|
||||
run: |
|
||||
@@ -142,7 +151,7 @@ jobs:
|
||||
- name: Generate checksums
|
||||
run: |
|
||||
cd dist
|
||||
sha256sum * > checksums.txt
|
||||
sha256sum *.tar.gz *.zip > checksums.txt
|
||||
cat checksums.txt
|
||||
|
||||
- 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