diff --git a/.github/FUNDING.yml b/.github/FUNDING.yaml similarity index 100% rename from .github/FUNDING.yml rename to .github/FUNDING.yaml diff --git a/.github/workflows/deb.yaml b/.github/workflows/deb.yaml new file mode 100644 index 0000000..15d3f62 --- /dev/null +++ b/.github/workflows/deb.yaml @@ -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 }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9283bc6..5c51d92 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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"