mirror of
https://github.com/pushbits/server.git
synced 2025-04-29 10:16:50 +02:00
Publish docs only for releases
This commit is contained in:
parent
bf3e87ad86
commit
7a3d13f28e
2 changed files with 6 additions and 14 deletions
15
.github/workflows/documentation.yml
vendored
15
.github/workflows/documentation.yml
vendored
|
@ -2,29 +2,20 @@ name: Documentation
|
|||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- '**.md'
|
||||
- '**.jpg'
|
||||
- '**.jpeg'
|
||||
- '**.png'
|
||||
- '**.yaml'
|
||||
- '**.json'
|
||||
tags:
|
||||
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||
|
||||
env:
|
||||
PB_BUILD_VERSION: unknown # Needed for using Make targets.
|
||||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
|
||||
|
||||
jobs:
|
||||
build_documentation:
|
||||
name: Build documentation
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
if: ${{ github.ref == 'refs/heads/main' }}
|
||||
steps:
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Needed to describe git ref during build.
|
||||
|
||||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v3
|
||||
|
|
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -9,6 +9,9 @@ on:
|
|||
- '!v[0-9]+.[0-9]+.[0-9]+'
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
PB_BUILD_VERSION: pipeline-${{ github.sha }}
|
||||
|
||||
jobs:
|
||||
test_build:
|
||||
name: Test and build
|
||||
|
@ -16,8 +19,6 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0 # Needed to describe git ref during build.
|
||||
|
||||
- name: Export GOBIN
|
||||
uses: actions/setup-go@v3
|
||||
|
|
Loading…
Add table
Reference in a new issue