sourcegit/.github/workflows/ci.yml

30 lines
706 B
YAML
Raw Normal View History

2024-03-03 13:11:25 -08:00
name: Continuous Integration
on:
push:
branches: [develop]
2024-03-03 13:11:25 -08:00
pull_request:
branches: [develop]
workflow_dispatch:
workflow_call:
2024-03-03 13:11:25 -08:00
jobs:
build:
name: Build
uses: ./.github/workflows/build.yml
version:
name: Prepare version string
runs-on: ubuntu-latest
outputs:
version: ${{ steps.version.outputs.version }}
2024-08-02 02:11:45 -07:00
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Output version string
id: version
run: echo "version=$(cat VERSION)" >> "$GITHUB_OUTPUT"
package:
needs: [build, version]
name: Package
uses: ./.github/workflows/package.yml
with:
version: ${{ needs.version.outputs.version }}