Skip to content

Tag New Release

Tag New Release #6

Workflow file for this run

name: Tag New Release
on:
workflow_dispatch:
inputs:
releaseVersion:
description: 'The version/tag of the release'
required: true
jobs:
update_spm:
runs-on: ubuntu-latest
steps:
- name: Checkout main branch
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: main
- name: Create and push tag
run: |
git config --global user.email "mobileteam@deque.com"
git config --global user.name "deque-mobileteam"
git tag -a ${{ github.event.inputs.releaseVersion }} -m "Release ${{ github.event.inputs.releaseVersion }}"
git push origin tag ${{ github.event.inputs.releaseVersion }}
- name: Create GitHub release
uses: softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2
with:
tag_name: ${{ github.event.inputs.releaseVersion }}
release_name: ${{ github.event.inputs.releaseVersion }}
generate_release_notes: true
draft: false
prerelease: false