Skip to content

Commit

Permalink
fix(release): Fix Release Package Bump Workflow (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
maticzav authored Aug 3, 2022
1 parent 0821319 commit ad0ace1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 20 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,19 @@ jobs:
body: ${{ steps.tag_version.outputs.changelog }}
if: steps.tag_version.outputs.new_tag != null

- name: Create Release
- name: Update Library Information
run: |
make update_brew_formula
make update_podspec
git add .
git commit -m "Update Formula and PodSpec to $(VERSION)"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.tag_version.outputs.new_version }}
- name: Create Pull Request
uses: peter-evans/create-pull-request
with:
commit-message: Bump Podspec and Brew formula
committer: GitHub <[email protected]>
branch: chore/publish
delete-branch: true
title: Update Formula and PodSpec to ${{ steps.tag_version.outputs.new_version }}
body: 'This PR updates the referenced versions of the formula and podspec to the latest version.'
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
if: steps.tag_version.outputs.new_tag != null
9 changes: 2 additions & 7 deletions Sources/GraphQL/Execution.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Foundation

/// Parameters sent to the GraphQL server for evaluation.
/// The structure holding parameters for a GraphQL request.
///
/// ExecutionArgs contains fields in the [GraphQL over HTTP spec](https://github.com/graphql/graphql-over-http/blob/main/spec/GraphQLOverHTTP.md#request-parameters) and [GraphQL over WebSocket](https://github.com/enisdenjo/graphql-ws/blob/master/PROTOCOL.md#subscribe) spec.
public struct ExecutionArgs: Codable, Equatable {
Expand Down Expand Up @@ -38,7 +38,7 @@ extension ExecutionArgs: Hashable {
}

/// GraphQL execution result as outlined in the [GraphQL Spec](http://spec.graphql.org/October2021/#sec-Response-Format).
public struct ExecutionResult {
public struct ExecutionResult: Equatable, Encodable, Decodable {

/// Result of a successfull execution of a query.
public var data: AnyCodable
Expand All @@ -64,8 +64,3 @@ public struct ExecutionResult {
self.extensions = extensions
}
}


extension ExecutionResult: Equatable {}
extension ExecutionResult: Encodable {}
extension ExecutionResult: Decodable {}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ enum NetworkClient {
// static private var http = URL(string: "http://127.0.0.1:4000/graphql")!
// static private var ws = URL(string: "ws://127.0.0.1:4000/graphql")!

// With Hosted Server
// Hosted Server
static private var http = URL(string: "https://thesocialnetwork.swift-graphql.com/graphql")!
static private var ws = URL(string: "wss://thesocialnetwork.swift-graphql.com/graphql")!

Expand Down
12 changes: 7 additions & 5 deletions website/docs/network.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ This section shows you how you can use it with the query-builder, but it shouldn
To create a client you can either choose to go with default (basic) set of exchanges that don't require any setup, or customize it to fit your needs. You can start with the simpler configuration, but we encourage you to switch to the complete configuration soon, since it gives you more clarity and control over what's happening.

```swift
// Configuration of the client internals.
let config = ClientConfiguration()
let url = URL(string: "http://127.0.0.1:4000/graphql")!

// Default request used to send HTTP requests.
let request = URLRequest(url: URL(string: "http://127.0.0.1:4000/graphql")!)
// Simple
let client = SwiftGraphQLClient.Client(request: URLRequest(url: url))

// Complete
let config = ClientConfiguration()
let client = SwiftGraphQLClient.Client(
request: request,
// Default request used to send HTTP requests.
request: URLRequest(url: url),
exchanges: [
DedupExchange(),
CacheExchange(),
Expand Down

1 comment on commit ad0ace1

@vercel
Copy link

@vercel vercel bot commented on ad0ace1 Aug 3, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.