Merge pull request #205 from manicmaniac/release/0.6.6 #11
Workflow file for this run
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
name: Package | |
on: | |
push: | |
tags: | |
- '*.*.*' | |
jobs: | |
package: | |
runs-on: macOS-12 | |
defaults: | |
run: | |
shell: bash | |
env: | |
DEVELOPER_DIR: /Applications/Xcode_13.4.1.app/Contents/Developer | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Validate version | |
run: test "$(agvtool what-version -terse)" = "${GITHUB_REF#refs/*/}" | |
- run: make xcnew.pkg | |
- name: Install package | |
run: sudo installer -pkg xcnew.pkg -target / | |
- name: Test installed package | |
run: make installcheck | xcpretty | |
- run: man -P cat 1 xcnew | |
- name: Create release | |
run: gh release create "${GITHUB_REF#refs/*/}" --generate-notes | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload release asset | |
run: gh release upload "${GITHUB_REF#refs/*/}" xcnew.pkg | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |