Skip to content

GitHub action - Satis build static files required for a composer repository

Notifications You must be signed in to change notification settings

dev-this/satis-build

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Satis - composer repository

Used for building your own composer repository using composer/satis.

Inputs

Input Description Required
token GitHub token that will be used for composer when invoked by satis.
Currently auth is static for "github-oauth"
Yes
satis_config Path to your satis configuration file No.
Default = ./satis.json

Outputs

None

Usage

Note: Your satis.json must contain "output-dir": ""

Example .github/workflow/composer-build.yaml

# eg. Can be used to host your internal composer package registry on github pages.
name: Composer repository

on:
  - push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: dev-this/satis-build@v1
        with:
          token: ${{ GITHUB_TOKEN }} # App/OAuth token, PAT
      - env:
          GIT_EMAIL: bot@github.com
          GIT_NAME: cool-bot
        run: |
          git config user.name $GIT_NAME
          git config user.email $GIT_EMAIL
          git add docs/
          git commit -m "Re-built repository assets"
          git push

Example satis.json

{
  "name": "my-cool/repository",
  "homepage": "https://where-are-you/",
  "repositories": [
    {
      "packagist.org": false
    },
    {
      "type": "vcs",
      "url": "https://github.com/my-cool-org/the-repository"
    }
  ],
  "require-all": true,
  "output-dir": "docs"
}

About

GitHub action - Satis build static files required for a composer repository

Resources

Stars

Watchers

Forks

Packages

No packages published