mirror of
https://github.com/zu1k/nali.git
synced 2025-01-22 13:19:02 +08:00
chore: Add action for aur nali-go-git
Signed-off-by: zu1k <i@zu1k.com>
This commit is contained in:
parent
22eb0fa055
commit
0793c046fc
21
.github/workflows/go.yml
vendored
21
.github/workflows/go.yml
vendored
@ -2,18 +2,16 @@ name: Go
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
|
||||
build:
|
||||
name: Build
|
||||
test-build:
|
||||
name: Test and Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '^1.18'
|
||||
|
||||
- name: Check out code into the Go module directory
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Cache go module
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@ -21,10 +19,21 @@ jobs:
|
||||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-go-
|
||||
|
||||
- name: Get dependencies and run test
|
||||
run: |
|
||||
go test ./...
|
||||
|
||||
- name: Build
|
||||
run: go build
|
||||
|
||||
release-aur-git:
|
||||
name: Release Aur Git
|
||||
needs: [test-build]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Publish AUR package
|
||||
uses: guumaster/aur-publish-docker-action@master
|
||||
with:
|
||||
package_name: nali-go-git
|
||||
commit_username: 'zu1k'
|
||||
commit_email: 'i@zu1k.com'
|
||||
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
|
||||
|
Loading…
Reference in New Issue
Block a user