Files
gitbump/.gitea/workflows/build.yml
T
meda 95b7758c42
Gitbump CI / test (push) Successful in 1m52s
Gitbump CI / build (push) Successful in 2m0s
Gitbump CI / notify (push) Successful in 4s
Lint with the shared configuration, so this repository follows the same rules as the rest
2026-10-28 10:27:07 +01:00

62 lines
1.4 KiB
YAML

name: Gitbump CI
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
test:
runs-on: [ubuntu-latest, amd64]
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: '1.27'
- name: Install just
run: |
curl --proto '=https' --tlsv1.2 -sSf https://just.systems/install.sh | bash
- name: Test & Build
run: |
/root/bin/just vet test
/root/bin/just build-linux-amd64
./bin/gitbump_linux_amd64 --version
- name: Lint
uses: https://lab.zlymeda.dynu.net/actions/go-lint@master
build:
runs-on: [ubuntu-latest, amd64]
needs: test
if: github.ref == 'refs/heads/master'
permissions:
contents: write
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: true
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: '1.27'
- name: Bump & Tag
run: go run main.go
notify:
runs-on: [ubuntu-latest, amd64]
needs: [test, build]
if: always()
steps:
- name: Notify
uses: https://lab.zlymeda.dynu.net/actions/ci-notify@master
with:
needs: ${{ toJSON(needs) }}
ntfy_token: ${{ secrets.NTFY_TOKEN }}