Created
November 27, 2022 12:14
-
-
Save asizikov/89d1b663593d9b934622d51e27658287 to your computer and use it in GitHub Desktop.
Run a deployment to productions when release tag is pushed
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
# 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