Skip to content

+ Add script release tag #3

+ Add script release tag

+ Add script release tag #3

Workflow file for this run

name: Release Tag
on:
workflow_dispatch:
secrets:
token:
required: true
jobs:
create_tag:
if: ${{ github.event.pull_request.merged == true}}
runs-on: macos-latest
timeout-minutes: 25
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
steps:

Check failure on line 15 in .github/workflows/release_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release_build.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
- name: Checkout
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/<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.ref_name }}.tar.gz -C .build/apple/Products/Release SwiftUICalendarView
- name: Release
uses: softprops/action-gh-release@v2
with:
files: ${{ github.ref_name }}.tar.gz
token: ${{ secrets.GH_TOKEN }}