An attempt to build a pi completely from gh
Used to build local:
- `snap/`
- `src/`
into the final snapcraft
.
Reference: Snapcraft CMD Login
This action workflow will log you in to the Snap Store. For this to work, you need an Ubuntu One account.
snap install snapcraft --classic
You will also need a Snap Store login token. To obtain one, run the following command on your machine:
snapcraft export-login <some-credentials-filename>
cat <some-credentials-filename>
Copy the output from above code-snippet (jwt
-like token) and add this to the repository's secrets variable SNAPCRAFT_TOKEN
.
NOTE: this is ONLY required if this repository is needing to obtain content from a third-party repository.
Goto: Create New Personal Access Token and set the below requirements to create a PAT.
Only select repositories
- select the specific repository you are working with.
Repository permissions
:- Contents:
r+w
- yields:
mandatory
: Read access to metadata
- yields:
- Contents:
Set the following Repository Variables
:
Execute in terminal for fast-link:
echo "${$(git config --get remote.origin.url)//'.git'/}/settings/variables/actions/new"
-
Name:
${{ vars.* }}
current repo variable name- Value: description of value for said variable name
-
GH_REMOTE_OWNER_ORG
- the owner or organization the remote repo you'd like to watch
-
GH_REMOTE_REPOSITORY
- the name of the remote repo you'd like to watch
USE_GH_RELEASE
, default =false
- informs the dispatcher and cacher steps to use
github's
assets/release files instead of another defined source.
- informs the dispatcher and cacher steps to use
Example
https://github.com/jasonkolodziej/template-snap.git
GH_REMOTE_OWNER_ORG=jasonkolodziej
GH_REMOTE_REPOSITORY=template-snap
#? the following URL is templated as
"https://github.com/${GH_REMOTE_OWNER_ORG}/${GH_REMOTE_REPOSITORY}.git"
# <github actions manifest ...>
OWNER: ${{ vars.GH_REMOTE_OWNER_ORG }}
REPOSITORY: ${{ vars.GH_REMOTE_REPOSITORY }}
USE_GH_RELEASE: ${{ vars.USE_REMOTE_GH_RELEASE_FILES }} #? default=false
# <github actions manifest ...>