initial commit #1
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: Create Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v1 | |
- name: Configure Git | |
run: | | |
git config --global user.name "Your Name" | |
git config --global user.email "[email protected]" | |
- name: Create Tag | |
id: create_tag | |
run: | | |
git tag -a v${{ github.run_number }} -m "Release v${{ github.run_number }}" | |
git push origin v${{ github.run_number }} | |
- name: Create Release | |
id: create_release | |
uses: actions/create-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: v${{ github.run_number }} | |
release_name: Release v${{ github.run_number }} | |
body: | | |
This is the release notes for v${{ github.run_number }}. | |
Add any relevant information about the release here. | |
draft: false | |
prerelease: false |