Skip to content

Commit

Permalink
try to change pod folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieudutour committed Jan 13, 2020
1 parent 55e2210 commit 84f217d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/lona-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ jobs:
while read p; do
echo "$p"
done <.__lona-artifact-path/variables.txt
echo "::set-output name=repo_name::$(echo "${{ github.repository }}" | tr '/' '_')"
id: variables

- name: Get the latest version of the repository
Expand All @@ -198,20 +199,20 @@ jobs:
run: npm install -g lonac

- name: Generate Swift sources
run: lonac workspace --workspace=. --target=swift --output=./.lona-pod/Sources
run: |
lonac workspace --workspace=. --target=swift --output=./.lona-pod/${{ steps.variables.outputs.repo_name }}/Sources
- name: Create podspec
run: |
REPO_NAME=$(echo "${{ github.repository }}" | tr '/' '_')
echo "Pod::Spec.new do |s|
s.name = \"$REPO_NAME\"
s.name = \"${{ steps.variables.outputs.repo_name }}\"
s.version = \"${{ steps.variables.outputs.new_version }}\"
s.summary = \"A pod for the ${{ github.repository }} Lona Workspace.\"
s.homepage = \"https://github.com/${{ github.repository }}\"
s.license = \"None\"
s.author = { \"Lona\" => \"[email protected]\" }
s.source = { :http => \"https://github.com/${{ github.repository }}/releases/download/${{ steps.variables.outputs.new_tag }}/pod.zip\" }
s.source_files = \"Sources/**/*.{m,h,swift}\"
s.source_files = \"${{ steps.variables.outputs.repo_name }}/Sources/**/*.{m,h,swift}\"
s.ios.deployment_target = \"10\"
s.macos.deployment_target = \"10.12\"
end" >> pod.podspec
Expand All @@ -222,7 +223,7 @@ jobs:
working-directory: ./.lona-pod

- name: Archive pod
run: zip -r ./.lona-pod-archive.zip ./.lona-pod
run: zip -r ./.lona-pod-archive.zip ./.lona-pod/${{ steps.variables.outputs.repo_name }}

- name: Publish the podspec to the GitHub release
uses: actions/upload-release-asset@master
Expand Down

0 comments on commit 84f217d

Please sign in to comment.