Public Access
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5b7d31cb34 | ||
|
|
376f244035 | ||
|
|
c4e6219606 | ||
|
|
34410a9cb8 |
No files matched your search
@@ -19,7 +19,11 @@
|
|||||||
"Bash(python3 -c \"import yaml; yaml.safe_load\\(open\\('/c/Users/laure/Documents/Gitea/brainwave/.gitea/workflows/deploy.yml'\\)\\)\")",
|
"Bash(python3 -c \"import yaml; yaml.safe_load\\(open\\('/c/Users/laure/Documents/Gitea/brainwave/.gitea/workflows/deploy.yml'\\)\\)\")",
|
||||||
"Bash(python3 -c \"import yaml; yaml.safe_load\\(open\\('.gitea/workflows/deploy.yml'\\)\\)\")",
|
"Bash(python3 -c \"import yaml; yaml.safe_load\\(open\\('.gitea/workflows/deploy.yml'\\)\\)\")",
|
||||||
"Bash(cat)",
|
"Bash(cat)",
|
||||||
"Read(//tmp/**)"
|
"Read(//tmp/**)",
|
||||||
|
"Bash(xargs git *)",
|
||||||
|
"Bash(awk '{print $2}')",
|
||||||
|
"Bash(git tag *)",
|
||||||
|
"Bash(git push *)"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -8,6 +8,8 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build-and-release:
|
build-and-release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Code
|
- name: Checkout Code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
@@ -81,26 +83,20 @@ jobs:
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
run: |
|
uses: softprops/action-gh-release@v2
|
||||||
# Create the release
|
with:
|
||||||
RELEASE_RESPONSE=$(curl -s -X POST \
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases" \
|
tag_name: ${{ github.ref_name }}
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
name: Release ${{ github.ref_name }}
|
||||||
-H "Content-Type: application/json" \
|
body: |
|
||||||
-d '{
|
Automated release for version ${{ github.ref_name }}
|
||||||
"tag_name": "${{ github.ref_name }}",
|
|
||||||
"name": "Release ${{ github.ref_name }}",
|
Included artifacts:
|
||||||
"draft": false,
|
- Docker images (amd64, arm64)
|
||||||
"prerelease": false
|
- Docker Compose files
|
||||||
}')
|
allowUpdates: true
|
||||||
|
files: |
|
||||||
RELEASE_ID=$(echo "$RELEASE_RESPONSE" | jq -r '.id')
|
brainwave-amd64.tar.gz
|
||||||
|
brainwave-arm64.tar.gz
|
||||||
# Upload each asset
|
docker-compose.amd64.yml
|
||||||
for FILE in brainwave-amd64.tar.gz brainwave-arm64.tar.gz docker-compose.amd64.yml docker-compose.arm64.yml; do
|
docker-compose.arm64.yml
|
||||||
curl -f -X POST \
|
|
||||||
"${{ github.server_url }}/api/v1/repos/${{ github.repository }}/releases/${RELEASE_ID}/assets?name=${FILE}" \
|
|
||||||
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
|
|
||||||
-F "attachment=@${FILE}" \
|
|
||||||
|| echo "Warning: failed to upload ${FILE}"
|
|
||||||
done
|
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
backend/brainwave.db-shm
|
backend/brainwave.db-shm
|
||||||
backend/brainwave.db-wal
|
backend/brainwave.db-wal
|
||||||
|
.claude/settings.local.json
|
||||||
Reference in new issue
Block a user