Skip to content

Commit

Permalink
build: removing snapcraft it's broken
Browse files Browse the repository at this point in the history
  • Loading branch information
dosco committed Apr 2, 2021
1 parent fe42cf4 commit 0ce802a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ jobs:
with:
fetch-depth: 0

- name: Set up Snapcraft
if: startsWith(github.ref, 'refs/tags/v')
run: |
sudo apt-get update
sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft
# - name: Set up Snapcraft
# if: startsWith(github.ref, 'refs/tags/v')
# run: |
# sudo apt-get update
# sudo apt-get -yq --no-install-suggests --no-install-recommends install snapcraft

- name: Set up Go
uses: actions/setup-go@v2
Expand All @@ -59,12 +59,12 @@ jobs:
go test -v -db=mysql -run=Example_query
go test -v -db=mysql -run=Example_sub
- name: Snapcraft Login
if: success() && startsWith(github.ref, 'refs/tags/v')
env:
SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
run: |
echo "$SNAPCRAFT_LOGIN" | snapcraft login --with -
# - name: Snapcraft Login
# if: success() && startsWith(github.ref, 'refs/tags/v')
# env:
# SNAPCRAFT_LOGIN: ${{ secrets.SNAPCRAFT_LOGIN }}
# run: |
# echo "$SNAPCRAFT_LOGIN" | snapcraft login --with -

- name: Import GPG key
if: success() && startsWith(github.ref, 'refs/tags/v')
Expand Down
32 changes: 16 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,19 +79,19 @@ scoop:
description: "Build APIs in 5 minutes. An automagical GraphQL to SQL compiler."
license: Apache-2.0

snapcrafts:
- name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
summary: "Build APIs in 5 minutes. An automagical GraphQL to SQL compiler"
description: |
GraphJin gives you a high performance GraphQL API without you having to write any code. GraphQL is automagically compiled into an efficient SQL query. Use it either as a library or a standalone service.
replacements:
darwin: macOS
amd64: x86_64
apps:
graphjin:
plugs: ["home", "network", "network-bind"]
grade: stable
confinement: strict
publish: true
license: Apache-2.0
base: core18
# snapcrafts:
# - name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
# summary: "Build APIs in 5 minutes. An automagical GraphQL to SQL compiler"
# description: |
# GraphJin gives you a high performance GraphQL API without you having to write any code. GraphQL is automagically compiled into an efficient SQL query. Use it either as a library or a standalone service.
# replacements:
# darwin: macOS
# amd64: x86_64
# apps:
# graphjin:
# plugs: ["home", "network", "network-bind"]
# grade: stable
# confinement: strict
# publish: true
# license: Apache-2.0
# base: core18

0 comments on commit 0ce802a

Please sign in to comment.