From b05663b1a9210cfbdd3d7b0da583eec9e602f5eb Mon Sep 17 00:00:00 2001 From: Steven Sherry Date: Thu, 14 Jul 2022 11:28:53 -0500 Subject: [PATCH] Automated publishing (#3) * chore: Add automated publishing --- .github/workflows/pre-release.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/pre-release.yml diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml new file mode 100644 index 0000000..7d477e8 --- /dev/null +++ b/.github/workflows/pre-release.yml @@ -0,0 +1,29 @@ +name: Pre-Release + +on: + push: + branches: + - 'release/**' + +jobs: + build: + runs-on: macos-latest + timeout-minutes: 30 + steps: + - run: sudo xcode-select --switch /Applications/Xcode_13.0.app + - uses: actions/checkout@v2 + - name: Install build dependencies + run: gem install cocoapods xcpretty + - name: Assign version to RELEASE_VERSION environment variable + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/*/}" >> $GITHUB_ENV + - name: Build Capacitor and Cordova + run: ./build-cap $RELEASE_VERSION + - name: Push manifest update + uses: EndBug/add-and-commit@v9 + - name: Create Draft Release + uses: ncipollo/release-action@v1 + with: + artifacts: "./capacitor-checkout/ios/Capacitor/Capacitor.xcframework.zip,./capacitor-checkout/ios/Capacitor/Cordova.xcframework.zip" + draft: true + tag: ${{ env.RELEASE_VERSION }} +