-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: build and upload debian-amd64 asset
- Loading branch information
Showing
1 changed file
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Deployment | ||
|
||
on: | ||
release: | ||
types: | ||
- created | ||
|
||
jobs: | ||
dist_linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: '1.21.6' | ||
|
||
- name: Install some build dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y gcc libgl1-mesa-dev xorg-dev | ||
- name: Install Task | ||
uses: arduino/setup-task@v2 | ||
with: | ||
version: 3.x | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Package | ||
run: | | ||
task package:debian-amd64 | ||
- name: Upload | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./dist/linkquisition-amd64.deb | ||
asset_name: linkquisition-${{ github.event.release.tag_name }}-amd64.deb | ||
asset_content_type: application/vnd.debian.binary-package |