Skip to content

Commit

Permalink
Release 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Apr 15, 2024
0 parents commit a07b262
Show file tree
Hide file tree
Showing 130 changed files with 4,788 additions and 0 deletions.
74 changes: 74 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
version: 2
updates:

- package-ecosystem: "composer"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "docker"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "gomod"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "gradle"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "maven"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "pub"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "swift"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"

- package-ecosystem: "terraform"
directory: "/"
schedule:
interval: "daily"
target-branch: "master"
51 changes: 51 additions & 0 deletions .github/workflows/move-repo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: DEUNA SDK Android release

on:
push:
tags:
- 'v*'

env:
USER_EMAIL: ${{ secrets.USER_EMAIL }}
CLIENT_REPOSITORY: ${{ secrets.CLIENT_REPOSITORY }}
DESTINATION_GITHUB_USERNAME: ${{ secrets.DESTINATION_GITHUB_USERNAME }}
DESTINATION_REPOSITORY_NAME: ${{ secrets.DESTINATION_REPOSITORY_NAME }}

jobs:
copy-to-repo:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Extract version from tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}

- name: Store the version in version.txt
run: echo "${{ steps.get_version.outputs.VERSION }}" > version.txt

- name: Rename release.yml.template to release.yml
run: mv ".github/workflows/release.yml.template" .github/workflows/release.yml

- name: Push contents to destination repo
run: |
# Create and navigate to temp_dir
mkdir temp_dir
shopt -s extglob # This enables extended globbing
cp -r !(temp_dir) temp_dir/
cp version.txt temp_dir/
cp -r .github temp_dir/
cd temp_dir
# Navigate to temp_dir and set up git
git init --initial-branch=main
git config user.name "GitHub Action"
git config user.email "${{ env.USER_EMAIL }}"
git add . --all
# Commit and push to the destination repo
git commit -m "Release ${{ steps.get_version.outputs.VERSION }}"
git remote add origin https://${{ env.DESTINATION_GITHUB_USERNAME }}:${{ secrets.DEUNA_PUBLIC_GITHUB_TOKEN }}@github.com/${{ env.DESTINATION_GITHUB_USERNAME }}/${{ env.DESTINATION_REPOSITORY_NAME }}.git
git push -u origin main --force
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Create Release from version.txt

on:
push:
branches:
- main

jobs:
release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::$(cat version.txt)

- name: Create Tag
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git tag ${{ steps.get_version.outputs.VERSION }}
- name: Push Tag
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tags: true

- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.get_version.outputs.VERSION }}
release_name: Release ${{ steps.get_version.outputs.VERSION }}
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
## [2.0.1]
- Fixed bad elements URL on production.

## [2.0.0]

### Changed

* **Renamed classes:**
* `DeUnaSdk` to `DeunaSDK`
* `Callbacks` to `CheckoutCallbacks`
* `OrderResponse` to `CheckoutResponse`
* `CheckoutEvents` to `CheckoutEvent`
* **Changed parameter order in event listener handlers:**
* **Before:**
```kotlin
Callbacks().apply {
eventListener = { response, type ->

}
}

ElementCallbacks().apply {
eventListener = { response, type ->

}
}
```
* **Now:**
```kotlin
CheckoutCallbacks().apply {
eventListener = { type, response ->

}
}

ElementCallbacks().apply {
eventListener = { type, response ->

}
}
```

0 comments on commit a07b262

Please sign in to comment.