Skip to content

Add ci

Add ci #10

Workflow file for this run

name: Build main and release
on:
push:
paths-ignore:
- 'README.md'
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
group: ${{ github.name }}-${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
permissions:
id-token: write
contents: read
checks: write # required for test-reporter
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/actions/build
test:
needs: [ build ]
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- uses: ./.github/workflows/actions/test
release:
needs: [ build, test ]
if: github.ref == 'refs/heads/develop'
runs-on: macos-13
steps:
- name: Setup git-mkver
uses: cperezabo/[email protected]
with:
version: "1.3.0"
- name: Generate version
run: |
export VERSION=$(git mkver next)
echo $VERSION
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
- name: Create Release
uses: ncipollo/[email protected]
with:
tag: $VERSION
generateReleaseNotes: true
draft: true