chore: use FW27623/qqwry instead of HMBSbige/qqwry (#196) #526
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: Go | |
on: [push, pull_request] | |
jobs: | |
test-build: | |
name: Test and Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '^1.21' | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v3 | |
- name: Cache go module | |
uses: actions/cache@v3 | |
with: | |
path: ~/go/pkg/mod | |
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] | |
if: github.event_name == 'push' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get version | |
id: version | |
run: echo ::set-output name=version::$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g') | |
- name: Publish AUR package nali-go-git | |
uses: zu1k/aur-publish-action@master | |
with: | |
package_name: nali-go-git | |
commit_username: 'zu1k' | |
commit_email: '[email protected]' | |
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} | |
new_release: ${{ steps.version.outputs.version }} |