capacitor-swift-pm/.github/workflows/pre-release.yml
Steven Sherry f5e8a579ee
Release 4.5.0 (#6)
* chore: Use macos-11 to continue to use Xcode 13.0

* Commit from GitHub Actions (Pre-Release)

Co-authored-by: Steven0351 <Steven0351@users.noreply.github.com>
2022-11-22 10:55:28 -06:00

27 lines
841 B
YAML

name: Pre-Release
on:
push:
branches:
- 'release/**'
jobs:
build:
runs-on: macos-11
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
brew install ghr
- 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
run: ghr -token ${{ secrets.GITHUB_TOKEN }} -name ${{ env.RELEASE_VERSION }} -draft -replace ${{ env.RELEASE_VERSION }} frameworks