Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyle Lee authored and Kyle Lee committed Oct 7, 2024
1 parent 116dd36 commit 629de73
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .github/scripts/DownloadLatestFrameworkAndDocs.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
VERSION_NUM=$1
COMMIT_HASH=$2

BASE_URL="https://agora.dequecloud.com/artifactory/Attest-iOS/axeDevToolsXCUI"
FRAMEWORK_FILENAME="axeDevToolsXCUI.xcframework-${VERSION_NUM}"
DOCS_FILENAME="axeDevToolsXCUI.doccarchive-${VERSION_NUM}"

if [ -n "$COMMIT_HASH" ]; then
FRAMEWORK_FILENAME="${FRAMEWORK_FILENAME}-${COMMIT_HASH}"
DOCS_FILENAME="${DOCS_FILENAME}-${COMMIT_HASH}"
fi

FRAMEWORK_URL="${BASE_URL}/frameworks/${FRAMEWORK_FILENAME}.zip"
DOCS_URL="${BASE_URL}/docs/${DOCS_FILENAME}.zip"

Expand Down
21 changes: 5 additions & 16 deletions .github/workflows/spm-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
releaseVersion:
description: 'The version/tag of the release'
required: true
commitHash:
description: 'The commit hash if included in Agora filename'
required: false

jobs:
update_spm:
Expand All @@ -24,28 +27,14 @@ jobs:
env:
DQ_AGORA_KEY: ${{ secrets.DQ_AGORA_KEY }}
run: |
sh .github/scripts/DownloadLatestFrameworkAndDocs.sh ${{ github.event.inputs.releaseVersion }}
sh .github/scripts/DownloadLatestFrameworkAndDocs.sh ${{ github.event.inputs.releaseVersion }} ${{ github.event.inputs.commitHash }}
- name: Commit changes
run: |
git config user.name "deque-mobileteam"
git config user.email "mobileteam@deque.com"
git add axeDevToolsXCUI.*
git commit -m "chore: release ${{ github.event.inputs.releaseVersion }}"
git push
- name: Create and push tag
run: |
git tag -a ${{ github.event.inputs.releaseVersion }} -m "Release ${{ github.event.inputs.releaseVersion }}"
git push origin tag ${{ github.event.inputs.releaseVersion }}
- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ github.event.inputs.releaseVersion }}
release_name: ${{ github.event.inputs.releaseVersion }}
generate_release_notes: true
draft: false
prerelease: false
git status

0 comments on commit 629de73

Please sign in to comment.