Skip to content

switch over to public repo #3

switch over to public repo

switch over to public repo #3

Workflow file for this run

name: "Pipeline"
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: 1.21
- name: Build
run: go build -v
- name: Test
run: go test -v ./...
release:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get next version
id: get_next_version
uses: thenativeweb/get-next-version@main
with:
prefix: 'v' # optional, defaults to ''
- name: Set up Git
if: steps.get_next_version.outputs.hasNextVersion == 'true'
run: |
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
- name: Create Tag
if: steps.get_next_version.outputs.hasNextVersion == 'true'
run: |
# Choose an appropriate version number (e.g., from your build process)
version="${{ steps.get_next_version.outputs.version }}"
# Create a lightweight tag
git tag $version
# Push the tag to GitHub
git push origin $version