magratheaguide / cybertron

Automatically transform theme files to Jcink-importable XML
MIT License
3 stars 1 forks source link

Publish Github Action #11

Open sudermanjr opened 3 years ago

sudermanjr commented 3 years ago

It would be nice to publish a github action that will run cybertron, as well as release a new version of a theme xml into a github release.

AJMansfield commented 1 week ago

Here, I've put together a workflow for running cybertron on my own project:

https://github.com/DestinyWeaves/theme/blob/main/.github/workflows/cybertron.yml

name: Compile JCINK Theme using Cybertron

on:
  push:
    branches: ["main"]

  workflow_dispatch:
    # Allows you to run this workflow manually from the Actions tab

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Install Cybertron
        uses: sigoden/install-binary@v1
        with:
          repo: magratheaguide/cybertron
          name: cybertron
          # tag: v1.1.0

      - name: Build theme XML
        run: cybertron build --name "${{ vars.theme_name }}"

      - name: Upload artifact
        uses: actions/upload-artifact@v4
        with:
          path: "${{ vars.theme_name }}.xml"