Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cdc7d62440 | |||
| 5180a93ee6 | |||
| 864a130df4 | |||
| 27607eb867 | |||
| aa0782a800 | |||
| 8c879b31c2 | |||
| f5ed427dd2 |
26
.gitea/workflows/bump-push.yml
Normal file
26
.gitea/workflows/bump-push.yml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
name: Go Bump
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ "main" ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bump:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
|
- name: Set up Go
|
||||||
|
uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: 1.21.1
|
||||||
|
|
||||||
|
- run: go install github.com/psanetra/git-semver/cli@master
|
||||||
|
|
||||||
|
- run: git tag v$(cli next --stable=false)
|
||||||
|
- run: git push --tags
|
||||||
|
|
||||||
|
- run: echo "🍏 This job's status is ${{ job.status }}."
|
||||||
@@ -1,28 +1,30 @@
|
|||||||
name: Go Bump
|
name: Go Bump
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# workflow_dispatch:
|
workflow_dispatch:
|
||||||
# inputs:
|
inputs:
|
||||||
# stable:
|
NAME:
|
||||||
# description: 'Stable Release'
|
description: "A random input name for the workflow"
|
||||||
# required: false
|
type: string
|
||||||
# type: boolean
|
SOME_VALUE:
|
||||||
# prerelease:
|
description: "Some other input to pass"
|
||||||
# description: 'Pre Release'
|
type: string
|
||||||
# required: false
|
|
||||||
# type: boolean
|
# push:
|
||||||
push:
|
# branches: [ "main" ]
|
||||||
branches: [ "main" ]
|
# pull_request:
|
||||||
pull_request:
|
# branches: [ "main" ]
|
||||||
branches: [ "main" ]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
bump:
|
bump:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
- run: echo stable=${{ inputs.stable }} pre=${{ inputs.prerelease }}
|
- run: echo stable=${{ inputs.STABLE }} pre=${{ inputs.BETA }}
|
||||||
|
|
||||||
- name: Set up Go
|
- name: Set up Go
|
||||||
uses: actions/setup-go@v3
|
uses: actions/setup-go@v3
|
||||||
|
|||||||
@@ -5,12 +5,17 @@ on:
|
|||||||
# branches: [ "main" ]
|
# branches: [ "main" ]
|
||||||
release:
|
release:
|
||||||
types: [ published ]
|
types: [ published ]
|
||||||
|
create:
|
||||||
|
types: [ tag ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
fetch-tags: true
|
||||||
|
|
||||||
- run: apt-get update && apt-get -y install ansible
|
- run: apt-get update && apt-get -y install ansible
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user