fix: actions

This commit is contained in:
Vincent Young 2023-11-19 19:33:09 -05:00
parent 60d1f387e4
commit ea27af8c80
No known key found for this signature in database
GPG Key ID: 84A0830C90354A56
3 changed files with 35 additions and 2 deletions

33
.github/workflows/deb.yaml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Build and Release DEB Package
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.19'
- name: Build and Create DEB Package
run: |
sudo apt-get update
sudo apt-get install -y dh-make debhelper
TAG_NAME=${GITHUB_REF##*/}
dpkg-buildpackage -us -uc
- name: Upload DEB Package to GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: ./deeplx-${{ steps.extract_tag.outputs.tag }}.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -11,9 +11,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')
runs-on: self-hosted runs-on: self-hosted
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-go@v2 - uses: actions/setup-go@v4
with: with:
go-version: "1.19" go-version: "1.19"