Skip to content

Latest commit

 

History

History
44 lines (36 loc) · 2.68 KB

README.md

File metadata and controls

44 lines (36 loc) · 2.68 KB

snapcrafters/ci/release-to-candidate

This action is used to run snapcraft remote-build for a given Snap, and a given architecture. Following that, the snap is released to the specified channel automatically.

Usage

# ...
jobs:
  release:
    name: 🚢 Release to latest/candidate
    runs-on: ubuntu-latest
    steps:
      - name: 🚢 Release to latest/candidate
        uses: snapcrafters/ci/release-to-candidate@main
        with:
          architecture: arm64
          launchpad-token: ${{ secrets.LAUNCHPAD_TOKEN }}
          store-token: ${{ secrets.STORE_TOKEN }}

API

Inputs

Key Description Required Default
architecture The architecture for which to build the snap. N amd64
bot-email The email address of the bot account to use to create and push tags to the repository. N [email protected]
bot-name The name of the bot account to use to create and push tags to the repository. N Snapcrafters Bot
channel The channel to release the snap to. N latest/candidate
launchpad-token A token with permissions to create Launchpad remote builds. Y
multi-snap Whether the repo contains the source for multiple snaps. N false
repo-token A token with privileges to create and push tags to the repository. Y
snapcraft-project-root The path to the Snapcraft YAML file. N
snapcraft-channel The channel to install Snapcraft from. N latest/stable
store-token A token with permissions to upload and release to the specified channel in the Snap Store Y

Outputs

Key Description Example
revision The Snap Store revision that was created. 15