Create Release #30
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: Create Release | |
on: | |
workflow_dispatch: | |
inputs: | |
tag: | |
description: 'The new version to tag, ex: 1.0.5' | |
required: true | |
type: string | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Create Release | |
run: | | |
set -euo pipefail | |
COPYFILE_DISABLE=1 tar czvf "rules_swift.$TAG.tar.gz" ./* | |
./.github/generate-notes.sh "$TAG" | tee notes.md | |
gh release create "$TAG" --title "$TAG" --target "$GITHUB_REF_NAME" --notes-file notes.md "rules_swift.$TAG.tar.gz" | |
env: | |
TAG: ${{ inputs.tag }} | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |