move gls.go into cmd/gls #4
Workflow file for this run
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
name: Build .deb package and create checksum | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Build binaries | |
run: go build -v ./... && go build -v cmd/gls/main.go | |
- name: Prepare directories for .deb packaging | |
run: | | |
mkdir gls-deb | |
mkdir -p gls-deb/usr/local/bin | |
cp gls gls-deb/usr/local/bin | |
- name: Build .deb package | |
uses: jiro4989/build-deb-action@v2 | |
with: | |
package: gls | |
package_root: gls-deb | |
maintainer: Ozan Sazak <[email protected]> | |
version: ${{ github.ref }} # refs/tags/v*.*.* | |
arch: 'amd64' | |
desc: 'minimal file manager with terminal UI #Go' | |
- name: Checksum of package | |
run: | | |
sha256sum gls_*.deb > $(ls gls_*.deb).sha256sum | |
echo gls_*.deb.sha256sum | |
- name: Release | |
uses: softprops/[email protected] | |
with: | |
files: | | |
*.deb* |