Skip to content

Create Release

Create Release #14

name: Create Release
on:
workflow_dispatch:
inputs:
tag:
description: 'The new version to tag, ex: x.x.x'
required: true
type: string
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Release
run: |
set -euo pipefail
git config user.name "Release Workflow"
git config user.email "[email protected]"
# Archive the repository
# Considerations:
# - Dont package development files (vscode config, etc)
# - Dont package the bazel-* symlink directories
# - Dont package most of the tests directory
COPYFILE_DISABLE=1 tar czvf "rules_ios.$TAG.tar.gz" \
--exclude="./.vscode" \
--exclude="./bazel-*" \
--exclude="./tests/framework" \
--exclude="./tests/ios" \
--exclude="./tests/macos" \
./*
# Create the release notes
./.github/workflows/generate_release_notes.sh "$TAG" | tee notes.md
# Create the release
gh release create "$TAG" \
--title "$TAG" \
--target "$GITHUB_REF_NAME" \
--generate-notes \
--notes-file notes.md \
"rules_ios.$TAG.tar.gz"
env:
TAG: ${{ inputs.tag }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}