Skip to content

Commit

Permalink
0.7.0-RC2 (kordlib#260)
Browse files Browse the repository at this point in the history
Co-authored-by: BartArys <[email protected]>
Co-authored-by: HopeBaron <[email protected]>
Co-authored-by: Bart Arys <[email protected]>
Co-authored-by: MrPowerGamerBR <[email protected]>
Co-authored-by: Michael Rittmeister <[email protected]>
Co-authored-by: Distractic <[email protected]>
Co-authored-by: Jacob Huebner <[email protected]>
  • Loading branch information
8 people authored Apr 19, 2021
1 parent c6911b5 commit f1f0214
Show file tree
Hide file tree
Showing 365 changed files with 25,228 additions and 13,132 deletions.
77 changes: 65 additions & 12 deletions .github/workflows/deployment-ci.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,82 @@
# This workflow will build a package using Gradle and then publish it to GitHub packages when a release is created
# For more information see: https://github.com/actions/setup-java#publishing-using-gradle
# This workflow will build a package using Gradle and then publish it to maven

name: Kotlin CI

name: Deployment
on:
push:
pull_request:
release:
types: [created]

types: [published]
jobs:
deploy:
build:
if: |
!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.pull_request.title, '[ci skip]')
name: Build Kord
runs-on: ubuntu-latest
env:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 8
- name: Build with Gradle
run: ./gradlew --stacktrace --info build -x apiCheck

release:
name: Publish artifacts
runs-on: ubuntu-latest
if: |
!contains(github.event.head_commit.message, '[publish skip]') && !contains(github.event.pull_request.title, '[publish skip]')
&& github.event_name != 'pull_request' && github.ref != 'refs/heads/master'
needs: build
env:
KORD_TEST_TOKEN: ${{ secrets.KORD_TEST_TOKEN }}
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }}
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
NEXUS_USER: ${{ secrets.NEXUS_USER }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.signingKey }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.signingPassword }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
GITHUB_TAG_NAME: ${{ github.event.release.tag_name }}
GITHUB_TARGET_COMMITISH: ${{ github.event.release.target_commitish }}
GITHUB_BRANCH_NAME: ${{ github.ref }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- run: echo "name=RELEASE_TAG::${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Set up JDK 1.8
with:
fetch-depth: 0
- uses: actions/cache@v1
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 8

- name: Build with Gradle
run: gradle --stacktrace --info bintrayUpload
- name: API Checking with Gradle
run: ./gradlew apiCheck


- name: Publish with Gradle
run: ./gradlew -x test publish

# Disabled for now
#
# - name: Close and Release Repository
# run: ./gradlew closeAndReleaseRepository
8 changes: 4 additions & 4 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ on:

jobs:
upload_docs:
name: upload docs
name: update docs docs
runs-on: ubuntu-latest
env:
GRGIT_USER: ${{ secrets.GRGIT_USER }}
ACTIONS_ALLOW_UNSECURE_COMMANDS: true

steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK 8
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: 8

- name: Publish docs with Gradle
run: gradle --stacktrace --info gitPublishPush
run: ./gradlew --stacktrace --info gitPublishPush
61 changes: 0 additions & 61 deletions .github/workflows/github-ci.yml

This file was deleted.

59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,62 @@
# 0.7.0-RC2

## Additions

* Added slash commands support. #145 #201 #253 #249
* Added core representation of templates #136
* Added overloaded operations for Intents and Permissions. #152 #203
* Added welcome screens. #141
* Added `Kord#getInvite`. #143
* Added pending property to member. #153
* Added `Kord` functions to get webhooks. #232
* Added ability to send a message through request. #184
* Added extension methods for `LiveEntity`. #177
* Added `USE_SLASH_COMMANDS` permission. #208
* Added `Permission#values` and `Permissions#values`. #255
* Added allowed mentions. #256
* Added new webhook endpoints. #217
* Added missing error codes. #250
* Added `Message#messageReference`. #245

## Fixes

* Fix `GuildBehavior#getWidgetOrNull` #138
* Fix nullity in builders. #135
* Fix channelId nullity in UpdateVoiceState. #144
* Fix provider nullity in embeds. #151
* Fix WebhookType.Incoming incorrect value. #156
* Fix `DiscordErrorResponse` inability to consume full input #162
* Fix `MessageCreateEvent#withStrategy` returning `Strategizable`. #233
* Fix serialization issues for `DiscordActivityPartySize`. #168
* Fix `Attachment#isImage` check. #172
* Fix`rpc_origins` being nullable instead of optional. #173
* Fix `LiveMessage` not being shut down on bulk delete. #174
* Fix `Message#authorAsMember` throwing if guild was not found. #178
* Fix swapped `mute` and `deaf` in `VoiceStateData`. #188
* Fix `preview_asset` not being optional. #206.
* Fix parsing raw responses into Json. #205
* Fix typos in webhook and welcome screen routes. #219 #220
* Fix gateway 0 blocking other shard gateways from running. #194
* Fix unhandled unknown channel types. #251


## Changes

* Allow controlling the number of total shards #196
* Replaced invoke functions with top-level factory functions. #210
* Allow multiple file upload. #247 #228 #229
* Added missing contracts #243

## Dependencies

* kotlin 1.4.10 -> 1.4.32 #198
* kotlinx.serialization 1.0.0 -> 1.1.0 #198
* kotlinx.coroutines 1.4.0 -> 1.4.2 #198
* kotlinx.atomicfu 0.14.4 -> 0.15.1 #198
* kotlinx.binary-compatibility-validator 0.2.3 -> 0.4.0 #198
* ktor 1.4.1 -> 1.5.2 #198
* kotlin-logging 2.0.3 -> 2.0.4 #198

# 0.7.0-RC

## Additions
Expand Down
Loading

0 comments on commit f1f0214

Please sign in to comment.