Skip to content

Commit

Permalink
Attempt to use GoReleaser to generate Snap packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben9922 committed Jun 11, 2023
1 parent 2c24f98 commit b9096a1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 25 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro'
# distribution:
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
66 changes: 66 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,72 @@ changelog:
- '^docs:'
- '^test:'

snapcrafts:
-
# The name of the snap. This is optional.
#
# Default: ProjectName
name: ruben-reversi

# Whether to publish the snap to the snapcraft store.
# Remember you need to `snapcraft login` first.
publish: true

# Single-line elevator pitch for your amazing snap.
# 79 char long at most.
summary: Command-line version of the classic Reversi / Othello game

# This the description of your snap. You have a paragraph or two to tell the
# most important story about your snap. Keep it under 100 words though,
# we live in tweetspace and your description wants to look good in the snap
# store.
description: |
Command-line version of the classic Reversi game (also referred to as Othello).
Supports both the modern Othello rules and the historical Reversi rules.
Run the game using the following command: `ruben-reversi`.
For more information, see: https://github.com/Ruben9922/reversi/blob/master/README.md.
# Channels in store where snap will be pushed.
#
# More info about channels here:
# https://snapcraft.io/docs/reference/channels
#
# Default:
# grade is 'stable': ["edge", "beta", "candidate", "stable"]
# grade is 'devel': ["edge", "beta"]
# Templates: allowed (since v1.15)
channel_templates:
- stable

# A guardrail to prevent you from releasing a snap to all your users before
# it is ready.
# `devel` will let you release only to the `edge` and `beta` channels in the
# store. `stable` will let you release also to the `candidate` and `stable`
# channels.
grade: stable

# Snaps can be setup to follow three different confinement policies:
# `strict`, `devmode` and `classic`. A strict confinement where the snap
# can only read and write in its own namespace is recommended. Extra
# permissions for strict snaps can be declared as `plugs` for the app, which
# are explained later. More info about confinement here:
# https://snapcraft.io/docs/reference/confinement
confinement: strict

# Your app's license, based on SPDX license expressions:
# https://spdx.org/licenses
license: GPL-3.0+

# A snap of type base to be used as the execution environment for this snap.
# Valid values are:
# * bare - Empty base snap;
# * core - Ubuntu Core 16;
# * core18 - Ubuntu Core 18.
base: core20

# The lines beneath this are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
Expand Down
25 changes: 0 additions & 25 deletions snap/snapcraft.yaml

This file was deleted.

0 comments on commit b9096a1

Please sign in to comment.