Skip to content

Release workflow

Release workflow #14

Workflow file for this run

name: Release workflow
on:
push:
branches:
- main
workflow_dispatch:
jobs:
release:
environment: production
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Get date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d %H:%M:%S')"
- name: Push to the production tag
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git tag -a production -m "Release ${{ steps.date.outputs.date }}"
git push --force origin production