forked from holzschu/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Carlos Cabanero
committed
Sep 19, 2024
1 parent
031e49a
commit e1c4208
Showing
1 changed file
with
63 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
name: CI | ||
|
||
# On workflows change, while we test. | ||
# Run the script (add Downloads to frameworks) | ||
# Create release, etc... | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'workflows*' | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
name: Building release assets | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: xcode-select | ||
run: sudo xcode-select -s /Applications/Xcode.app | ||
|
||
- name: Delete release notes | ||
run: rm -f .build/release.md | ||
|
||
- name: Run build | ||
run: swift run | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body_path: release.md | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload vim Xcframework | ||
id: upload-release-vim-xcframework-zip | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./vim.xcframework.zip | ||
asset_name: vim.xcframework.zip | ||
asset_content_type: application/zip | ||
|
||
- name: Upload xxd Xcframework | ||
id: upload-release-xxd-xcframework-zip | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./xxd.xcframework.zip | ||
asset_name: xxd.xcframework.zip | ||
asset_content_type: application/zip |