Skip to content

fission-codes/publish-action

Repository files navigation

Publish Action

Built by FISSION Discord Discourse

This action publishes your app on Fission.

Note You need to have an account already registered. See the Getting Started section of the Fission Guide.

QuickStart

- uses: fission-suite/publish-action@v1
  with:
      machine_key: ${{ secrets.FISSION_KEY }}

Inputs

machine_key

Required The base64 encoded "machine key" for the app owner.

Once your user and app are registered, you can use the following command to get your key (base64 encoded):

cat ~/.config/fission/key/machine_id.ed25519|base64

Copy the resulting value into Github Secrets for your project (or run gh secret set if using the github cli).

app_url

Optional The URL of an already registered app. You can use this option instead of committing your fission.yaml file to git. This is especially useful if you want to deploy different branches to different URLs.

build_dir

Optional The build output directory for your app. This is the same value as the build valid in fission.yaml.

workdir

Optional Set the working directory for publish. This is only required if your fission.yaml file is not in the root directory for the repository.

remote

Optional Set the remote (Fission API endpoint) to use (leave this blank unless you know you need it.).

verbose

Optional Enables verbose output from the fission CLI (useful for debugging publishing errors).

Outputs

app_url

The url of the published app - particularly useful if your repository doesn't have a fission.yaml file and you are using generated urls.