From 699b2a5a521411ab1fce47ab2564933e559552af Mon Sep 17 00:00:00 2001 From: Kyle Lee Date: Wed, 9 Oct 2024 09:03:14 -0700 Subject: [PATCH] check existence --- .github/workflows/spm-release.yml | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/.github/workflows/spm-release.yml b/.github/workflows/spm-release.yml index e265180a..f4287cc3 100644 --- a/.github/workflows/spm-release.yml +++ b/.github/workflows/spm-release.yml @@ -59,10 +59,33 @@ jobs: run: | rm -rf *.zip + - name: Verify Files Exist + run: | + if [[ -f "Package.swift" && -d "axeDevToolsXCUI.doccarchive" && -d "axeDevToolsXCUI.xcframework" ]]; then + echo "All required files and directories are present." + else + echo "One or more required files/directories are missing." + exit 1 + fi + - 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 status \ No newline at end of file + git status + + # - 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 \ No newline at end of file