Skip to content

Update release_build.yml #7

Update release_build.yml

Update release_build.yml #7

Workflow file for this run

---
name: Release Tag
on:
workflow_call:
secrets:
token:
required: true
push:
branches:
- master
jobs:
create_tag:
name: Setup Tag
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-14
swift:
- "5.9"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Create tag
uses: actions/github-script@v5
with:
script: |
github.rest.git.createRef({
owner: context.repo.owner,
repo: context.repo.repo,
ref: 'refs/tags/${{ github.event.inputs.tagname }}',
sha: context.sha
})
- name: Build executable for release
run: swift build -c release --arch arm64 --arch x86_64 --product
SwiftUICalendarView
- name: Compress archive
run: tar -czf ${{ github.event.inputs.tagname }}.tar.gz -C
.build/apple/Products/Release SwiftUICalendarView
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ${{ github.event.inputs.tagname }}.tar.gz
token: ${{ secrets.GH_TOKEN }}