Skip to content

Commit

Permalink
fix: actions
Browse files Browse the repository at this point in the history
  • Loading branch information
missuo committed Nov 20, 2023
1 parent 60d1f38 commit ea27af8
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
File renamed without changes.
33 changes: 33 additions & 0 deletions .github/workflows/deb.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-go@v2
- uses: actions/setup-go@v4
with:
go-version: "1.19"

Expand Down

0 comments on commit ea27af8

Please sign in to comment.