fix github action auth
This commit is contained in:
@@ -5,6 +5,9 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- 'v*'
|
- 'v*'
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Release
|
name: Build and Release
|
||||||
@@ -49,67 +52,46 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: go test ./...
|
run: go test ./...
|
||||||
|
|
||||||
|
- name: Generate checksums
|
||||||
|
run: |
|
||||||
|
sha256sum hyprvoice-linux-x86_64 > hyprvoice-linux-x86_64.sha256
|
||||||
|
echo "Binary SHA256:"
|
||||||
|
cat hyprvoice-linux-x86_64.sha256
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
id: create_release
|
uses: softprops/action-gh-release@v1
|
||||||
uses: actions/create-release@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ steps.version.outputs.VERSION }}
|
||||||
release_name: Release ${{ steps.version.outputs.VERSION }}
|
name: Release ${{ steps.version.outputs.VERSION }}
|
||||||
body: |
|
body: |
|
||||||
## Hyprvoice v${{ steps.version.outputs.VERSION }}
|
## Hyprvoice v${{ steps.version.outputs.VERSION }}
|
||||||
|
|
||||||
### Installation
|
### Installation
|
||||||
|
|
||||||
**From AUR (Recommended):**
|
**From AUR (Recommended):**
|
||||||
```bash
|
```bash
|
||||||
yay -S hyprvoice-bin
|
yay -S hyprvoice-bin
|
||||||
hyprvoice configure
|
hyprvoice configure
|
||||||
systemctl --user enable --now hyprvoice.service
|
systemctl --user enable --now hyprvoice.service
|
||||||
```
|
```
|
||||||
|
|
||||||
**Manual installation:**
|
**Manual installation:**
|
||||||
```bash
|
```bash
|
||||||
wget https://github.com/leonardotrapani/hyprvoice/releases/download/v${{ steps.version.outputs.VERSION }}/hyprvoice-linux-x86_64
|
wget https://github.com/leonardotrapani/hyprvoice/releases/download/v${{ steps.version.outputs.VERSION }}/hyprvoice-linux-x86_64
|
||||||
chmod +x hyprvoice-linux-x86_64
|
chmod +x hyprvoice-linux-x86_64
|
||||||
mv hyprvoice-linux-x86_64 ~/.local/bin/hyprvoice
|
mv hyprvoice-linux-x86_64 ~/.local/bin/hyprvoice
|
||||||
```
|
```
|
||||||
|
|
||||||
### What's Changed
|
### What's Changed
|
||||||
- See commit history for detailed changes
|
- See commit history for detailed changes
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
- Wayland desktop environment
|
- Wayland desktop environment
|
||||||
- PipeWire audio system
|
- PipeWire audio system
|
||||||
- OpenAI API key for transcription
|
- OpenAI API key for transcription
|
||||||
|
|
||||||
**Full Changelog**: https://github.com/leonardotrapani/hyprvoice/commits/v${{ steps.version.outputs.VERSION }}
|
**Full Changelog**: https://github.com/leonardotrapani/hyprvoice/commits/v${{ steps.version.outputs.VERSION }}
|
||||||
draft: false
|
files: |
|
||||||
prerelease: false
|
./hyprvoice-linux-x86_64
|
||||||
|
./hyprvoice-linux-x86_64.sha256
|
||||||
- name: Upload binary
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./hyprvoice-linux-x86_64
|
|
||||||
asset_name: hyprvoice-linux-x86_64
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
|
|
||||||
- name: Upload checksums
|
|
||||||
run: |
|
|
||||||
sha256sum hyprvoice-linux-x86_64 > hyprvoice-linux-x86_64.sha256
|
|
||||||
echo "Binary SHA256:"
|
|
||||||
cat hyprvoice-linux-x86_64.sha256
|
|
||||||
|
|
||||||
- name: Upload checksum file
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: ./hyprvoice-linux-x86_64.sha256
|
|
||||||
asset_name: hyprvoice-linux-x86_64.sha256
|
|
||||||
asset_content_type: text/plain
|
|
||||||
|
|||||||
Reference in New Issue
Block a user