Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: canonical/grafana-agent-snap
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 49171e72c204e563440984dcf21e8377bd8cbbdf
Choose a base ref
..
head repository: canonical/grafana-agent-snap
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 857afcbf4d194aad6d0620979648d0133031b27b
Choose a head ref
Showing with 7 additions and 3 deletions.
  1. +7 −3 .github/workflows/release-snap.yaml
10 changes: 7 additions & 3 deletions .github/workflows/release-snap.yaml
Original file line number Diff line number Diff line change
@@ -16,6 +16,9 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# snapcraft remote-build requires a full clone
fetch-depth: 0

- name: Setup LXD
uses: canonical/setup-lxd@v0.1.1
@@ -26,10 +29,11 @@ jobs:
run: |
sudo snap install --classic --channel edge snapcraft
# Setup Launchpad credentials
mkdir -p ~/.local/share/snapcraft/provider/launchpad
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/provider/launchpad/credentials
mkdir -p ~/.local/share/snapcraft
echo -e "$LAUNCHPAD_TOKEN" >> ~/.local/share/snapcraft/launchpad-credentials
git config --global user.email "github-actions@github.com"
git config --global user.name "Github Actions"
git config --global user.name "Github Actions"
- name: Build Snap (remote)
run: snapcraft remote-build --launchpad-accept-public-upload