From 4c7b8817a1ceca4ec52c06f45d3972d6b3a08cfa Mon Sep 17 00:00:00 2001 From: Austin Cherry Date: Sat, 19 Aug 2023 15:24:17 -0500 Subject: [PATCH] fix: release workflow --- .github/workflows/release.yml | 3 ++- fastlane/Fastfile | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5c5f0dae..d3f80552 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,5 +19,6 @@ jobs: - run: bundle exec fastlane test - run: bundle exec fastlane release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.PAT_GITHUB_TOKEN }} + COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} TAG: ${{ steps.vars.outputs.tag }} diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 764ef4ff..df1cdf77 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -13,12 +13,12 @@ end platform :ios do desc "Deploy new version" lane :release do - version = version_bump_podspec(path: "Starscream.podspec", version_number: ENV['TAG']) + version = version_bump_podspec(path: "Starscream.podspec", version_number: ENV["TAG"]) changelog = changelog_from_git_commits(merge_commit_filtering: "exclude_merges") github_release = set_github_release( - repository_name: "daltoniam/Starscream", - api_token: ENV['GITHUB_TOKEN'], + repository_name: "daltoniam/starscream", + api_token: ENV["GITHUB_TOKEN"], name: version, tag_name: version, description: changelog,