Skip to content

Instantly share code, notes, and snippets.

@asizikov
Created November 27, 2022 12:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save asizikov/89d1b663593d9b934622d51e27658287 to your computer and use it in GitHub Desktop.
Save asizikov/89d1b663593d9b934622d51e27658287 to your computer and use it in GitHub Desktop.
Run a deployment to productions when release tag is pushed
# https://blog.cloud-eng.nl/2022/11/26/environment-protection-tags/
name: ⚙️ deployment
# Controls when the workflow will run
on:
push:
tags:
- 'release_*'
jobs:
deployment:
runs-on: ubuntu-latest
environment: production
steps:
- name: Run a one-line script
run: echo 'deployment to production'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment