Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 802 Bytes

README.md

File metadata and controls

47 lines (37 loc) · 802 Bytes

reusable-workflows

Repository for reusable workflows.

How to use in plugin projects?

Example of .github/workflows/ci.yaml:

name: CI

on:
  push:
    branches:
      - main
  pull_request:
    branches:
      - main

jobs:
  ci:
    # Suggest using stable branch, tag or sha.
    uses: halo-sigs/reusable-workflows/.github/workflows/plugin-ci.yaml@main

Example of .github/workflows/cd.yaml:

name: CD

on:
  release:
    types:
      - published

jobs:
  cd:
    # Suggest using stable branch, tag or sha.
    uses: halo-sigs/reusable-workflows/.github/workflows/plugin-cd.yaml@v2
    secrets:
      halo-pat: ${{ secrets.HALO_PAT }}
    permissions:
      contents: write
    with:
      # This is required for releasing to Halo App Store.
      app-id: app-Qxhpp