Created
March 3, 2021 11:17
-
-
Save philMarius/59d85521aae26121d3bbd197a5b9bac6 to your computer and use it in GitHub Desktop.
Tag release workflow for blog: Azure Functions Environment Separation with Linux Apps
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: Tag Release | |
on: | |
push: | |
branches: [master] | |
jobs: | |
tag_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Initialise mandatory git config | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email noreply@github.com | |
- name: Setup env version name with artifact file | |
run: | | |
version=`cat VERSION` | |
export VERSION_NAME=$version | |
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV | |
- name: Extract release notes | |
id: extract-release-notes | |
uses: ffurrer2/extract-release-notes@v1 | |
- name: Create release | |
id: create-release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ env.VERSION_NAME }} | |
release_name: v${{ env.VERSION_NAME }} | |
body: ${{ steps.extract-release-notes.outputs.release_notes }} | |
draft: false | |
prerelease: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment