Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 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,10 +118,22 @@ 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: 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
|
- name: Generate changelog
|
||||||
run: |
|
run: |
|
||||||
@@ -142,7 +151,7 @@ jobs:
|
|||||||
- name: Generate checksums
|
- name: Generate checksums
|
||||||
run: |
|
run: |
|
||||||
cd dist
|
cd dist
|
||||||
sha256sum * > checksums.txt
|
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