mirror of
https://github.com/OwO-Network/DeepLX.git
synced 2025-04-19 14:13:24 +00:00
fix: actions
This commit is contained in:
parent
60d1f387e4
commit
ea27af8c80
33
.github/workflows/deb.yaml
vendored
Normal file
33
.github/workflows/deb.yaml
vendored
Normal 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 }}
|
4
.github/workflows/release.yaml
vendored
4
.github/workflows/release.yaml
vendored
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user