Skip to content

Commit

Permalink
build: Update snapcraft login procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Dec 15, 2023
1 parent 87c9cf1 commit f601116
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ jobs:
run: |
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
- name: Snapcraft Login
if: success() && startsWith(github.ref, 'refs/tags/v')
shell: bash
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
snapcraft login
- name: Get Dependencies
shell: bash
run: go get ./...
Expand Down Expand Up @@ -69,3 +61,4 @@ jobs:
MASTODON_CLIENT_ID: ${{ secrets.MASTODON_CLIENT_ID }}
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@ jobs:
shell: bash
run: |
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
- name: Snapcraft Login
if: success() && startsWith(github.ref, 'refs/tags/v')
shell: bash
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
snapcraft login
- name: Setup Chocolatey
shell: bash
Expand Down Expand Up @@ -70,3 +62,4 @@ jobs:
MASTODON_CLIENT_ID: ${{ secrets.MASTODON_CLIENT_ID }}
MASTODON_CLIENT_SECRET: ${{ secrets.MASTODON_CLIENT_SECRET }}
CHOCOLATEY_API_KEY: ${{ secrets.CHOCOLATEY_API_KEY }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_LOGIN }}

0 comments on commit f601116

Please sign in to comment.