diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0497eb9..871aa44 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,8 @@ name: Release on: push: - tags: "*.*.*" + branches: "*" + # tags: "*.*.*" jobs: build: @@ -12,8 +13,10 @@ jobs: steps: - uses: actions/checkout@v2 - # - name: Build Carthage Archive - # run: carthage build --archive --use-xcframeworks + - name: Build Carthage Archive + run: | + carthage build --use-xcframeworks --no-skip-current + zip -r AppStorage.xcframework.zip Carthage/Build - name: Create Release id: create_release @@ -26,12 +29,12 @@ jobs: draft: false prerelease: false - # - name: Upload Release Asset - # uses: actions/upload-release-asset@v1 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # with: - # upload_url: ${{ steps.create_release.outputs.upload_url }} - # asset_path: ./AppStorage.framework.zip - # asset_name: AppStorage.framework.zip - # asset_content_type: application/zip + - name: Upload Release Asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./AppStorage.xcframework.zip + asset_name: AppStorage.xcframework.zip + asset_content_type: application/zip diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03b3b77..60db728 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,28 +7,11 @@ on: branches: [ main ] jobs: - test-xcode-12: - env: - DEVELOPER_DIR: /Applications/Xcode_12_beta.app/Contents/Developer - - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v2 - - name: Generate Xcode Project - run: swift package generate-xcodeproj - - name: Run Xcode 12 tests - run: xcodebuild test -scheme AppStorage-Package -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.0' - - test-xcode-11: - env: - DEVELOPER_DIR: /Applications/Xcode_11.6.app/Contents/Developer - + test: runs-on: macos-latest steps: - uses: actions/checkout@v2 - - name: Run Xcode 11 tests + - name: Run Tests run: swift test