From b2d9ec9af7b09e90f59278952f63d243d62d61ee Mon Sep 17 00:00:00 2001 From: Yehor Popovych Date: Wed, 14 Oct 2020 00:04:01 +0300 Subject: [PATCH] updated CI configs --- .github/workflows/build.yml | 4 ++-- .github/workflows/deploy.yml | 17 +++++++++++++++++ ScaleCodec.podspec | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 54f0c22..d24e1f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,7 +5,7 @@ jobs: runs-on: macOS-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Select Xcode run: sudo xcode-select -s /Applications/Xcode_11.4.app - name: Build and Test SPM @@ -19,6 +19,6 @@ jobs: options: --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --security-opt apparmor=unconfined steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v2 - name: Build and Test run: swift test diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..11e6a9c --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Publish CocoaPods package +on: + release: + types: [created] +jobs: + publish: + runs-on: macOS-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Select Xcode + run: sudo xcode-select -s /Applications/Xcode_11.4.app + - name: Publish Pod + run: pod trunk push --allow-warnings + env: + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} + diff --git a/ScaleCodec.podspec b/ScaleCodec.podspec index b493283..70e8595 100644 --- a/ScaleCodec.podspec +++ b/ScaleCodec.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'ScaleCodec' - s.version = '0.0.1' + s.version = '0.1.0' s.summary = 'SCALE codec implementation for Swift language' s.description = <<-DESC